开发者

How to publish Facebook feed as someone else other than the logged in user?

The editors on my news site can publish articles that are written by authors (who don't have permissions to publish stories on their own). So when the articles get published to FB, they are published under the FB profiles of the editors instead.

Does Facebook API allow stream publishing as someone else other than the logged in user?

According to the wiki documenation, I can specify the author's uid in the api call. However, it gave me a fatal error code of 210 instead.

Fatal error: Uncaught exception 'FacebookRestClientException' with message 'User not visible' in /usr/local/share/php_includes/facebook/facebookapi_php5_restlib.php:3065 ...

User not visible. T开发者_JAVA百科he user doesn't have permission to act on that object.

How to bypass this error?


1.) The user must have added(liked) the app

2.) The user must have wall posts enabled (check whether you can post directly to his/her facebook wall (without API)


I never tried that but I guess you're going to need the offline access permission in order to achieve that. This grants you the privilege to access a user account without the user being currently logged in your application.

I wrote a blog post about this a few months ago.


Alright, so the api call DOES work. However, it's important to know if the user (the person you are performing actions on - the authors in this case) is a fan of your application. If they are not a fan, they cannot post on app wall. :(


Pierre Olivier Martel: offline access will bedeprecated soon : http://developers.facebook.com/roadmap/offline-access-removal/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜