I m using the php SDK for the Graph API, and everything is working fine-getting usernames, uploading photos etc. However, when I m trying to publish to the current user s feed, it just makes the page get stuck.
This is the code:
$publish_feed = $facebook->api( / .$userid /feed , post , array(
message => message ,
picture => http://mysubdomain.mywebsite.com/photo.jpg ,
link => http://apps.facebook.com/appname/
););
I ve tried:
- Putting the code in different places in the code-no matter where I do, it gets the page stuck, Even if ti is at the end of the code, it gets it stuck, and nothing shows.
- changing
$userid
to/me
. No success.
Please help.