How to post from facebook app to facebook page?
I want to post image data from facebook app to facebook page.
I tried using stream.publish. I was able to post image but it is deprecated. And also I was not able to post link.
Curl request to post using stream.publish is as under :-
curl -F 'access_token=dsdsdsd' \ -F 'message=' \ -F 'uid=23434' \ -F 'attachment={"media": [ { "type": "image", "src": "http://url.com/videothumb/465_06122010_p_bizpiyushgargeng_48271_10754.jpg" }], "name" : "{Markets likely to scale back: ICICI Sec", "description" : "ICICI Securities CIO Piyush Garg says theres a fair chance of scaling back in the market as most of the domestic negative news has already b...", "caption" : "News" }' \ https://api.facebook.开发者_Go百科com/method/stream.publish
While using graph API I am not able to publish from my APP.
Rather it is published through my profile.
Any help is greatly appreciated.
http://php-academy.blogspot.com/2011/04/how-to-post-from-facebook-app-to.html
I made a example in this page, here you have a example to send post to facebook with javascript including post, links and picture, get your friens with image and user, send friends messages and others...hope to help you
As of now the answers are incorrect because obsolete.
Right now the only way to do that is to submit your application for review having the permissions of manage_pages publish_pages in your application. The platform name is server-to-server. It still requires a full review and a screencast where you simply describe HOW you use your api.
Otherwise your posts won't be publicly visible.
精彩评论