如何从Facebook应用发布到Facebook页面?

如何从Facebook应用发布到Facebook页面?

问题描述:

我想将图像数据从 facebook应用发布到 facebook页面.

I want to post image data from facebook app to facebook page.

我尝试使用 stream.publish .我可以发布图片,但已弃用.而且我也无法发布链接.

I tried using stream.publish. I was able to post image but it is deprecated. And also I was not able to post link.

使用stream.publish发出的卷曲请求如下:-

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":"{市场可能会扩大 返回:ICICI Sec", "description":"ICICI证券CIO Piyush Garg说有一个很好的机会 尽可能减少市场规模 国内的负面新闻有 已经...", 标题":新闻" }'\ https://api.facebook.com/method/stream.publish

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.com/method/stream.publish

使用图形API时,无法从我的APP发布.

While using graph API I am not able to publish from my APP.

相反,它是通过我的个人资料发布的.

Rather it is published through my profile.

非常感谢您的帮助.

http://php-academy.blogspot.com/2011/04/how-to-post-from-facebook-app-to.html

到目前为止,由于过时了,答案是不正确的.

As of now the answers are incorrect because obsolete.

目前唯一的方法是将应用程序提交给应用程序中具有manage_pages publish_pages权限的审阅.平台名称是服务器到服务器. 它仍然需要完整的评论和一个截屏视频,您只需在其中描述如何使用api.

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.