Page 1 of 1

Post text in facebook notes and datebase

Posted: Tue Aug 16, 2011 4:25 pm
by niki_noki
Hello ! :)

I have any question. Can I publish note in facebook and in my database with php ?

Re: Post text in facebook notes and datebase

Posted: Wed Aug 17, 2011 9:54 am
by niki_noki
Any ideas how do make this code? :(

Re: Post text in facebook notes and datebase

Posted: Wed Aug 17, 2011 10:45 am
by phphelpme
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

Re: Post text in facebook notes and datebase

Posted: Wed Aug 17, 2011 11:12 am
by niki_noki
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

Posted: Wed Aug 17, 2011 11:20 am
by phphelpme

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); } 
I strongly suggest you look into the Facebook API documentation.

Check out their developer website: http://developers.facebook.com/

Best wishes

Re: Post text in facebook notes and datebase

Posted: Wed Aug 17, 2011 11:26 am
by niki_noki
phphelpme wrote:

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); } 
I strongly suggest you look into the Facebook API documentation.


Best wishes
Fatal error: Call to a member function api() on a non-objec

Re: Post text in facebook notes and datebase

Posted: Wed Aug 17, 2011 11:36 am
by phphelpme
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

Re: Post text in facebook notes and datebase

Posted: Wed Aug 17, 2011 11:43 am
by phazorRise
you need facebook php sdk.
https://github.com/facebook/php-sdk
documentation is also available at https://developers.facebook.com

Re: Post text in facebook notes and datebase

Posted: Wed Aug 17, 2011 11:52 am
by phphelpme
Thanks phazorrise,

Should have given that link to the library. lol

Best wishes

Re: Post text in facebook notes and datebase

Posted: Wed Aug 17, 2011 1:15 pm
by niki_noki
phazorRise wrote:you need facebook php sdk.
https://github.com/facebook/php-sdk
documentation is also available at https://developers.facebook.com
And now what can I do? :|

Re: Post text in facebook notes and datebase

Posted: Wed Aug 17, 2011 1:34 pm
by phazorRise
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 !