tags:

views:

644

answers:

2

Hi, here's my scenario. 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. The user doesn't have permission to act on that object.

How to bypass this error?

Please help. Thanks in advance.

A: 

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.

Pierre Olivier Martel
The user has already granted me offline_access so that's not the problem.But thanks, your post gave me some ideas on how to do it and it's now SOLVED.
Cat
@Cat: What's the solution?
Bart van Heukelom
See my answer below ;)
Cat
A: 

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. :(

Cat

related questions