How do you post to the wall on a facebook page (not profile)

Get PHP SDK from github and run the following code: <?php $attachment = array( ‘message’ => ‘this is my message’, ‘name’ => ‘This is my demo Facebook application!’, ‘caption’ => “Caption of the Post”, ‘link’ => ‘http://mylink.com’, ‘description’ => ‘this is a description’, ‘picture’ => ‘http://mysite.com/pic.gif’, ‘actions’ => array( array( ‘name’ => ‘Get Search’, ‘link’ … Read more

Facebook app domain name when using localhost

It seems like the protocol has been changed. Here is my solution (I tested on 3rd April 2015 and it works well): In Settings -> Basic tab App Domain: localhost Click “+Add Platform” and choose “Website“ Site URL: http://localhost:<port>/ (<port> is your port number) Save Changes

Facebook ‘Friends.getAppUsers’ using Graph API

I searched around for a while, and I too thought this wasn’t possible using Graph API. However, I posted a similar question, Replacement for old GetAppUsers call to see a user’s friends who use my application?, for the specific API I was using and was given a great general answer. https://graph.facebook.com/me/friends?fields=installed or more generally https://graph.facebook.com/{user … Read more

Facebook: get list of pages that a user is admin of

Its simple with Graph API. Steps: Get the manage_pages permission from the user (extended permissions). Call the Graph API – https://graph.facebook.com/me/accounts You can test this procedure in the graph explorer -> Just click on ‘Get Access Token’ button-> under ‘Extended permission’ check ‘manage_pages’ & submit it. It will give you the admin-page-details JSON.

Facebook user url by id

UPDATE 2: This information is no more given by facebook. There is an official announcement for the behavior change (https://developers.facebook.com/blog/post/2018/04/19/facebook-login-changes-address-abuse/) but none for its alternative. Yes, Just use this link and append your ID to the id parameter: https://facebook.com/profile.php?id=<UID> So for example: https://facebook.com/profile.php?id=4 Will redirect you automatically to https://www.facebook.com/zuck Which is Mark Zuckerberg’s profile. If … Read more

Invisible characters – ASCII

I just went through the character map to get these. They are all in Calibri. Number    Name      HTML Code    Appearance ——    ——————–  ———    ———- U+2000    En Quad    &#8192;      “ ” U+2001    Em Quad    &#8193;      “ ” U+2002    En Space   &#8194;    “ ” U+2003    Em Space  &#8195;     “ ” U+2004  Three-Per-Em Space &#8196;    “ ” U+2005  Four-Per-Em … Read more

Send private messages to friends

Sending private message through api is now possible. Fire this event for sending message(initialization of facebook object should be done before). to:user id of facebook function facebook_send_message(to) { FB.ui({ app_id:’xxxxxxxx’, method: ‘send’, name: “sdfds jj jjjsdj j j “, link: ‘https://apps.facebook.com/xxxxxxxaxsa’, to:to, description:’sdf sdf sfddsfdd s d fsf s ‘ }); } Properties app_id Your … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)