Comments (8)
What I have in mind is get AccessToken from ANE and do the upload from actionscript. Is there any other method?
from ane-facebook.
I tried using with this code
from ane-facebook.
I tried with this code, which actually worked with Adobe's Facebook AS3 SDK.
Looks like you first have to upload your image somewhere and then post the link to that image. I tried uploading image's bytearray, but that didn't work. Error:
error = {
code = 324;
message = "(#324) Requires upload file";
type = OAuthException;
};
var post:Object = {
link : 'https://apps.facebook.com/somelink',
picture: bytes,
message: msg,
caption: msg,
name: params.fileName
};
trace('before feed');
//Facebook.ui('feed', post, callback);
fb.requestWithGraphPath("/me/photos",post,"POST" , callback);
So I ended up buying Go Viral social share ANE extension.
from ane-facebook.
This specific operation is not supported by the ANE but can easily be done in AS3 once you have an access token:
var ml:MultipartURLLoader = new MultipartURLLoader();
ml.dataFormat = URLLoaderDataFormat.TEXT;
ml.addVariable("filename", "picture.jpg");
ml.addVariable("message", "my fancy comment");
ml.addVariable("access_token", Facebook.getInstance().accessToken);
ml.addFile(myPictureByteArray, "picture.jpg", "Filedata", "application/octet-stream");
ml.loader.addEventListener(Event.COMPLETE, mySuccessCallback);
ml.loader.addEventListener(IOErrorEvent.IO_ERROR, myErrorCallback);
ml.load("https://graph.facebook.com/" + myAlbumID + "/photos");
from ane-facebook.
I tried but still not posting on iOS and Android.
Here are links - https://play.google.com/store/apps/details?id=air.BubbleGun&hl=en
https://play.google.com/store/apps/details?id=air.SpeedCarRacing&hl=en
from ane-facebook.
Hello zarnaagames
I have triyed it's work
I have make a screenshot and post it on facebook
just change this
ml.load("https://graph.facebook.com/" + myAlbumID + "/photos");
to
ml.load("https://graph.facebook.com/" + USER_ID+ "/photos"); //facebook will create a new album with app name
from ane-facebook.
Hi,
I've tried ml.load("https://graph.facebook.com/" + USER_ID+ "/photos");
And I got Stream Error. URL: https://graph.facebook.com/(USER_ID - my user id show up here)/photos
Anyone know whats wrong?
from ane-facebook.
Hi stainpanda,
did you have any luck with your problem? I get the same Stream error.
from ane-facebook.
Related Issues (20)
- Can I call logPurchase method?
- Token vs Code
- Facebook sdk hash key configuration HOT 1
- no resource found @style/theme.appcompat.light HOT 3
- Unable to package app HOT 6
- How ane handle users without connection HOT 4
- Compiling apk for Android fails HOT 12
- App crashes on iOS 8
- App crashes on android < 5.0
- IOS compiling error: ld: library not found for -lclang_rt.ios HOT 1
- IOS Facebook log in with application option stuck on login screen HOT 1
- how to get facebook id? HOT 1
- How to resolve conflicts between two ANE? HOT 1
- Error #1069: Property value not found on String and there is no default value.
- ANE Does not work on Android
- Export Build Error HOT 1
- Error occurred while packaging the application: HOT 2
- [ios] crash: FBSDKCoreKit_Basics not found
- Can you provide a version of ANE with Facebook SDK greater than 12.0?
- Can you update Facebook ANE to the latest version?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ane-facebook.