I have any question. Can I publish note in facebook and in my database with php ?
Post text in facebook notes and datebase
Moderator: General Moderators
Post text in facebook notes and datebase
Hello ! 
I have any question. Can I publish note in facebook and in my database with php ?
I have any question. Can I publish note in facebook and in my database with php ?
Re: Post text in facebook notes and datebase
Any ideas how do make this code? 
Re: Post text in facebook notes and datebase
I dont get what you are trying to do here?
You need to be more specific because you can post in two places yeah by saving content as string variable and posting to another site and your database.
Best wishes
You need to be more specific because you can post in two places yeah by saving content as string variable and posting to another site and your database.
Best wishes
Re: Post text in facebook notes and datebase
I want to post notes in facebook with php code on my site. How to make this code?
Re: Post text in facebook notes and datebase
Code: Select all
try { $statusUpdate = $facebook->api('/me/feed', 'post', array('name'=>'My APP on Facebook','message'=> 'I am here working', 'privacy'=> array('value'=>'CUSTOM','friends'=>'SELF'), 'description'=>'testing my description', 'picture'=>'https://something.net/mypicture.gif', 'caption'=>'apps.facebook.com/myapp','link'=>'http://apps.facebook.com/myapp')); } catch (FacebookApiException $e) { d($e); }
Check out their developer website: http://developers.facebook.com/
Best wishes
Re: Post text in facebook notes and datebase
Fatal error: Call to a member function api() on a non-objecphphelpme wrote:I strongly suggest you look into the Facebook API documentation.Code: Select all
try { $statusUpdate = $facebook->api('/me/feed', 'post', array('name'=>'My APP on Facebook','message'=> 'I am here working', 'privacy'=> array('value'=>'CUSTOM','friends'=>'SELF'), 'description'=>'testing my description', 'picture'=>'https://something.net/mypicture.gif', 'caption'=>'apps.facebook.com/myapp','link'=>'http://apps.facebook.com/myapp')); } catch (FacebookApiException $e) { d($e); }
Best wishes
Re: Post text in facebook notes and datebase
You need to develop an API app for facebook to do this with from your website.
I have not got the time to do this for you.
Look into the facebook development and you should find all the coding you need then you just get it to work with your site.
Best wishes
I have not got the time to do this for you.
Look into the facebook development and you should find all the coding you need then you just get it to work with your site.
Best wishes
- phazorRise
- Forum Contributor
- Posts: 134
- Joined: Mon Dec 27, 2010 7:58 am
Re: Post text in facebook notes and datebase
you need facebook php sdk.
https://github.com/facebook/php-sdk
documentation is also available at https://developers.facebook.com
https://github.com/facebook/php-sdk
documentation is also available at https://developers.facebook.com
Re: Post text in facebook notes and datebase
Thanks phazorrise,
Should have given that link to the library. lol
Best wishes
Should have given that link to the library. lol
Best wishes
Re: Post text in facebook notes and datebase
And now what can I do?phazorRise wrote:you need facebook php sdk.
https://github.com/facebook/php-sdk
documentation is also available at https://developers.facebook.com
- phazorRise
- Forum Contributor
- Posts: 134
- Joined: Mon Dec 27, 2010 7:58 am
Re: Post text in facebook notes and datebase
setup your site with php sdk.
https://developers.facebook.com/setup/ here, you'll get appId and secrete key for your site.
and you can use Graph API for updating status some other stuff. https://developers.facebook.com/setup/ itself shows tutorials on how tos !
https://developers.facebook.com/setup/ here, you'll get appId and secrete key for your site.
and you can use Graph API for updating status some other stuff. https://developers.facebook.com/setup/ itself shows tutorials on how tos !