Okay, there maybe many question same to me. But I can not solve how to handle in my case. Let start:
I develop a property listing website. The flowchart is simple. User can posting as many as they want using facebook login.
Now they all are okay. I also can solve about how whenever user finish their posting, it will automatically post to their personal/user wall page.
But I want that every listing should be also posted on MY property listing page. Whether it will post as user who make the posting or as page name, no problem. But I need to make sure it not use my personal/user/admin of the page.
So I can't find any answer how to solve this. How in a single website session, my script can post to the user wall who make the posting, and also post to my page. If it prohibited for user who are a foreigner and not the admin to post to my page, then how to make post to my page under the name of the page itself, when the facebook api created is belong to the user. Do I need to create different facebook api object? Need help..thank you for anyone who can help me. Really appreciated.
Below is the code I have use:
$attachment = array(
'message' => FB_STREAM_MSG,
'picture' => $imgsrc,
'link' => $seourl,
'name' => $prop_name,
'caption' => FB_STREAM_CAP,
'description' => substr($prop_desc,0,150) . '..',
);
$facebook->api("/$user/feed", 'POST', $attachment);
//$facebook->api("/".FB_PAGE_ID, 'POST', $attachment); //this doesn't work.