Facebook Notes API Has Some Interesting Points. Some of the features has been removed in new version of API but still some works in legacy mode. Reader can read the guide on Deploying a Facebook App With Heroku Cloud, in that way; testing the codes and API can be possible with an App without spending any money. As the title tells the need – Facebook and Google Search treats differently from that of normal Status Update
posts. Continue to Read More link appears like blog posts on Friends’ Home Feed. Notes are somewhat sticky.
Facebook Notes API
Official guide for Facebook Notes API (older version) can be found here :
1 | https://developers.facebook.com/docs/graph-api/reference/v2.0/note |
Older way of posting Notes on Facebook using Facebook Notes API :
---
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | <?php $access_token='Your ACCES TOKEN'; $attachment = array( 'access_token' => $access_token, 'message' => 'MESSAGE <img src='https://your-domain-or-cdn.com/YourImage.jpg' /> ', 'subject' => 'test note' ); // set the target url $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,'https://graph.facebook.com/id_fanpage/notes?'); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $attachment); curl_setopt($ch, CURLOPT_RETURNTRANSFER, false); //to suppress the curl output $result= curl_exec($ch); curl_close ($ch); |
Many features has been changed in newer version, however few points remained constant :
1 2 3 4 5 | # access notes while logged in as Profile https://www.facebook.com/notes # you can add the Notes application to the favorites for page, Go into 'Admin' (settings) # and the 'Apps' menu (down left side), then you can select the 'Notes' app to change # it's settings |
Facebook has since changed Notes settings so that way to autopost no longer works for importing blog. However, a Drupal Module exists which is regularly updated :
1 | https://www.drupal.org/node/1838454/release |