Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I use the Feed Dialog to post on a Facebook Fan Page wall not liked by the user?

Tags:

facebook

UPDATE: Facebook's API has changed a lot since this question was posted. This question is not relevant anymore.

I'm making an iOS application for an online radio and I want the users to be able to post messages on the radio's Facebook Fan Page which, by the way, has all the permissions set to allow everyone to post on it's wall.

I know that users can post on the fan page no matter if they "liked" or not the fan page if they are on the fan page. However, at least with the Facebook's iOS and Javascript SDKs, the feed dialog would display the following error if the user hasn't liked the page:

An invalid target was specified: 219909461711. The target must be a page, event or user that the actor can post on the wall of.

"219909461711" would be the ID number of the target profile, which is the Radio's Facebook Fan Page. If you use the Fan Page's path name, the SDK changes it for the Fan Page's profile ID number.

Am I doing something wrong? Why is it that the dialog displays this error if the user is being noticed that the message will be posted on a Fan Page?

like image 405
Tato Barilatti Avatar asked Feb 08 '12 15:02

Tato Barilatti


2 Answers

It appears this is a known issue, see https://developers.facebook.com/bugs/379697955378489, you should subscribe to the bug to track its progress.

like image 195
DMCS Avatar answered Oct 28 '22 04:10

DMCS


I don;t know for iOS, but at least for web, you can use the graph api to post to a fan page, and that does not require for the user to have liked the page. Posting to a page via the graph api is still available after the fb changes on February 7th (I've just tried)

like image 24
Alina Avatar answered Oct 28 '22 02:10

Alina