Topic-icon No need to set objects and actions???

Active Subscriptions:

None
10 years 11 months ago #33861 by Bettychung
Hello,

Do we no longer have to create 'object' and 'actions on ADMIN to enable auto post?

I just added this code in my php file and it is posting to Facebook timeline. I didn't setup "object" and "actions" in neither AMIN nor on FB.

I think his code is not totally correct.
//else{
echo "<div id='quiz-container'></div>";
/* echo '<div style="text-align: center; margin-top: 10px;">';
echo $jfbcLibrary->getLogoutButton();
echo '</div>';*/
if( $jfbcLibrary->userIsConnected() ){
$post = 'I just finished a quiz on Bagadvisor.com';
$post = '488.bagadvisor.com/quiz';
$jfbcLibrary->setFacebookMessage($post);
}
?>



Also, i thought it only works on public accounts once FB approved my request. It is working now without FB's approval.

Did something change recently?


thanks
The topic has been locked.
Support Specialist
10 years 11 months ago #33868 by alzander
Nothing changed. As I tried to detail the differences in this other forum thread , there are "Wall Posts" and "Open Graph Actions". In short:
* Actions can be automatically posted to a user's Timeline without them seeing or editing the post first. They do, however, need approval from Facebook before they will work for all users.
* Feed/Wall Posts should be displayed to the user or allow them to edit and approve the post before it's pushed to their Timeline. Because the user has to explicitly choose to make the post, it does not need to be approved by Facebook.

The code you're using above is for a Feed Post, not for an Open Graph Action post. An Open Graph Action post has a lot more context and Facebook can use that to aggregate things, such as "10 of your friends cooked a recipe". The action is cook and the recipe would be on your site. It's great when you get a lot of Actions posted as they get more users to do the same things.

Feed Posts are just status updates that look like they came from the user.

If you're using the code above, that may be perfectly fine. However, you need to make sure you're following Facebook Application Policies and properly notifying the user of the post and/or letting them see and edit it before it's posted. While I've never seen it happen, violations of their Policies could mean that they revoke your API key.

I hope that helps explain,
Alex
The topic has been locked.