Fetch Facebook Calendar URL using Graph API - facebook

I'm trying to fetch the URL of the Calendar of a user (not a page), specifically containing birthdays, using the Graph API. I'm able to do it manually on the Facebook site (using instructions from here) but I want to automate it using the Graph API. In the documentation I'm only able to find details about extracting events related to a page, but not for a user. Does anybody have any experience with extracting the URL of a Facebook Calendar containing the birthdays of the friends of a user?
P.S: It is of the form webcal://www.facebook.com/ical/b.php?uid=xxxxxx&key=yyyyyy

Related

Need knowledge on facebook API data retrieve

I want to know, wether can I get the Facebook Page Insight Data using FB app. I am newbie and want to get data of Facebook page of registered users.
All the data as well as engagement of all post on that page.
For this you have to learn about the graph API of facebook, but for scraping the data from page you can start by reading this.

Retrieve specifc hashtags from Facebook using Graph API

I want to get the JSON result of all the shared posts or statuses with the hashtag of my company name #company_name. How can I proceed with this. Currently I have tried with Facebook Graph Explorer Tool using the built-in access token, but this doesn't seem to give the data.
As user WizKid (Software Engineer at Facebook) states in the comments, there is no API for hash tags.
You can search through public posts using Post search in API v1.0 but this is not possible in v2.0.

Custom Content in wall post via web app

I have developed a website and I want users to be able to share their activity on facebook. I am able to post a simple message and an image using graph api, but I need to be able to post customized content, like Foursquare and other apps do. For example, when a Foursquare user shares his checkin on facebook, it shows a map and an info box which contains a few images of that place. How can I customize the content shown in the facebook post?

Facebook Insights API - App News Feed counts for Impressions and Clicks

I have been exploring the Facebook insights FQL table, and I assumed I could get to all of the data which is available via the insights dashboard from the FB app admin.
However, I am having trouble figuring out how to get the data shown on the "Insights > News Feed" set of reports. Particularly, I am trying to get to the stats of the feed stories generated by my app.
Is it possible to get to this data right now? I can't seem to find it.
Try to use insights connection for Post.
The User, Page, Application and Group objects have feed connections containing post objects that represent their walls. In addition the User and Page objects have a connection named posts containing Posts made by the User and the Page respectively.
A post from Facebook Platform: https://graph.facebook.com/19292868552_10150189643478553

Streaming Facebook Pages Wall (not just the pages posts)

I have looked on 100 forums looking for a simple answer for how to stream every post on a Facebook page's wall (not using the like box for just the pages posts, but everyone's posts). I am the admin of the page and I am already using the like box for my posts so I understand that, however the developer pages of Facebook are too confusing for such a simple task. I will be inserting the stream into an HTML page which will be hosted on www.1and1.com so it can handle most, if not all code.
I know it is a lot to ask but is there evem someplace online that will offer plain step-by-step instructions for my specific needs?
If the social plugins they make available aren't sufficient, you could just pull in the feed with the Facebook graph api using the javascript sdk (easiest) or there is probably an SDK for whatever programming language you know. For example, you can see a list of posts on the coca cola page using the Facebook graph explorer:
https://developers.facebook.com/tools/explorer/?method=GET&path=cocacola%2Ffeed
The /page/feed method needs an access token, but you can use the graph explorer to get an offline_access token that you can use to pull the data in. This may eliminate javascript sdk usage though unless you want to first prompt users to authenticate your application. But otherwise you would just parse the json feed that is returned in the url indicated in the graph explorer (and add your access_token to the end of the url).
Here is a good PHP tutorial on how to display a groups feed on a web page. It would be just as easy to display the posts from a page (since you are the admin)
Just replace the group ID with the page ID. Here is a link to the feed for the Facebook Platform feed graph api results. More info on FB Pages here.