English 中文(简体)
Posting to an Open Graph page
原标题:

I ve got a open graph page with a like button, activity feed, etc. I want to be able to post programmatically. The open graph docs says it s possible via the old stream.publish api. I ve got a meta tag pointing to my facebook application, but the stream publish api doesn t seem to be able to post.

This is what i m posting via the api:

{ 
   message= Hello facebook ,
  target_id= ID via curl  https://graph.facebook.com/?ids ,
   uid = application_id 
}

I keep getting:

"error_code":101,"error_msg":"Invalid API key"

What am I missing?

最佳回答

I figured out my problem. Make sure you ve got the app_id meta tag and the uid should be the social nodes id. So the id that s passed back from https://graph.facebook.com/?ids=http://website/

问题回答

A meta tag with your application ID isn t going to do anything if you want to perform actions programmatically. You need to use the javascript libs and initialize them with your application ID. http://developers.facebook.com/docs/reference/javascript/





相关问题
Facebook Connect login dialog not working

I am using Facebook Connect for iPhone and following the official instructions. I use the following code to display the login dialog: FBLoginDialog* dialog = [[[FBLoginDialog alloc] initWithSession:...

Facebook App Profile Tab is Empty ... No Content Displayed?

I can view my application via the http://apps.facebook.com/myapplication/ link and the content shows up correctly. I also added the application as a tab to a facebook page. However, when viewing the ...

Facebook Platform error: "Object cannot be liked"

I m working on a Facebook Application that generates wall posts. In testing these posts, I ve discovered that the Facebook Platform action of "liking" a post is failing. The specific error message ...

how to call showPermissionsDialog() in php (facebook api)?

I was reading over the documentation yet I could not figure out how to call Facebook.showPermissionsDialog() in php include_once ./facebook-platform/php/facebook.php ; $facebook = new Facebook(my ...

Facebook connect

If I plug in the facebook connect into my website, How can I prevent double signups? Lets say I have a user that s already signed up to my site but he clicked the connect with facebook, is there a ...

热门标签