Giter VIP home page Giter VIP logo

Comments (8)

designerkamal avatar designerkamal commented on September 26, 2024

What I have in mind is get AccessToken from ANE and do the upload from actionscript. Is there any other method?

from ane-facebook.

skolesnyk avatar skolesnyk commented on September 26, 2024

I tried using with this code

from ane-facebook.

skolesnyk avatar skolesnyk commented on September 26, 2024

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.

ataugeron avatar ataugeron commented on September 26, 2024

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.

zarnaagames avatar zarnaagames commented on September 26, 2024

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.

messi89 avatar messi89 commented on September 26, 2024

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.

stainpanda avatar stainpanda commented on September 26, 2024

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.

chrust33 avatar chrust33 commented on September 26, 2024

Hi stainpanda,
did you have any luck with your problem? I get the same Stream error.

from ane-facebook.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.