marc_online — 2010-02-08T22:04:02-05:00 — #1
I am currently posting content to a users wall and a page that they are admin of. However I have just realized that the code I am using is posting the content to the page under the users name. This means the posts are being classified as "fan" posts. What I want is to post content on the pages wall under the pages name just like Twitterfeed does.
So the code I am using now is:
$return_code = $this->facebook->api_client->stream_publish($message, $attachment, $action_links, $data['fb_page_id'], $data['fb_connect_uid']);
Where fb_page_id is the page id and fb_connect_uid is the user who allowed access to the page and is a page admin.
stream_publish does not seem to be the correct class to use if publishing to page wall under pages name.
paul_wilkins — 2010-02-10T18:04:24-05:00 — #2
Far be it from me to turn you away from SitePoint, you are in need of expert API knowledge for FaceBook, so you are much more likely to find a solution from the FaceBook Developers Forum instead.
marc_online — 2010-02-10T15:50:16-05:00 — #3
marc_online — 2010-02-10T22:38:01-05:00 — #4
Yep - done that and still waiting for a reply. Sitepoint is a generic forum so posting a PHP question that happens to be about facebook API is still valid.
paul_wilkins — 2010-02-10T23:06:53-05:00 — #5
Yes, the question is valid. I'm glad that you posted at the FaceBook forum because people there will have much greater specific knowledge of the FaceBook API.
Good luck with your enquiry, but here and over there.
marc_online — 2010-02-10T23:15:25-05:00 — #6
The facebook documentation is well known to be "light" with no real world examples so I hope someone can help. If I get it working I will post in this thread.
paul_wilkins — 2010-02-10T23:55:16-05:00 — #7
For reference, this is the FaceBook post, where it seems some permission assistance is being given.
marc_online — 2010-02-11T01:30:09-05:00 — #8
This worked! Thanks to the "The Reaper" on the facebok developers forum
Facebook.showPermissionDialog('publish_stream,read_stream', 'ondone', enableProfileSelector, [1234,2345]);
Read help guide here: http://wiki.developers.facebook.com/index.php/Facebook.showPermissionDialog