reading public data insights from page fan about facebook - facebook-insights

I have noticed that for obtaining the insight information, Facebook provides a particular graph api but unfortunately I can only access at page_fans_country and page_storytellers data.
However i've seen that if i go in a general fan page, there is a "likes" section (in the "About" page) where it is created a graph about the trend of "talking_about_this" number and trend of "like" number.
this two graph are "canvas" object and if I move the mouse over them, it is displayed some information which are impossible to obtain by graph api. I've tried to find a method to take this information by analysing javascript code.
Once thing I'v understood
is that there is a "mouseover" event that active a code at 118 line
javascript page and this code show a div element in html page with classname "graphTooltip". however i dont able to get a text information in this div element. Does anyone know how obtain that text?

Related

Share Count Missing After Adding OpenGraph Tags to Page

I built a page at the following URL http://s2r.ca/helpmetest that had been shared a couple of times. When I viewed the Facebook Graph API stats on the page it showed that the page had 2 shares.
I then proceeded to add Open Graph tags to the page so that when the page is shared a specific image, title and description would be displayed. Since adding these tags, when I view the Graph API stats, the 'shares' key is missing from the result set.
Looking at the graph debugger, other than a warning that my image needs to be at least 200px x 200 px (which is it ~600 x ~300, unless it wants the image to be square, but it pulls the image anyways and the Share box also pulls it when clicking the Facebook button from the website), there aren't any errors.
So I'm a little confused as to why the counts have gone missing.
Since then, I have shared the site at the following 2 urls:
http://s2r.ca/helpmetest
http://s2r.ca/helpmetest/0
and the Graph API request still doesn't return any shares
http://graph.facebook.com/http://s2r.ca/helpmetest
http://graph.facebook.com/http://s2r.ca/helpmetest/0
Does anyone have any insight as to why?

Post via open graph to Company Page NOT user

As I am learning and getting familiar with the FB OG API I am finding that I am lacking some of the basics. For example I see here that I use the action type news.publishes to post an article. However the access_token is for the user owning the page and thus it will go to their news feed and not the page (in this case their company page). Correct?
If I understand correctly then how does one get it to post to a specific page. Is there an access_token collection you iterate through till you find the one for the company page?
TIA
JB
You should be able to use /PAGE_ID/feed? Where page id is the numerical assigned by facebook..or the text friendly name you used.

Is there any way to get a Facebook "Like Box" to include posts by other than the page owner

I'm looking after a fairly stodgy rather static website for an organization which (now) also has a Facebook "page" with a bit more of a community buzz around it.
I added a Facebook "Like Box" to the old site. While it's a nice attractor for the Facebook "page" through the "Like button", count and the photos of the community, I'm a bit disappointed the "stream" component of it (so far as I can tell) only shows posts by the page identity, which are relatively boring compared with what you have if you added the comments and "posts by others" from the community active on the Facebook page.
Is there any way of getting this additional content into the Like Box ?
I already tried adding '&force_wall=true' to the like box iframe parameters to no effect - in any case the page isn't for a place; it's for "Companies & Organizations" - so if this isn't controllable through the API I do wonder if there's something I can tweak in the FB page admin settings ? Or is it just not an option at all ?
Researched for the same, but no success. The closest you can get is through Activity Feed plugin, that too only if you have an App Page. So, the only option left is to get whole page feed using the Graph API and then parse it accordingly.
Ex: https://graph.facebook.com/cocacola/feed?access_token=your_access_token

Show tagged images from facebook on website?

I am trying to achieve similar functionality to the one shown here...http://blackmilkclothing.com/collections/leggings/products/circuit-board-grey-leggings
there fan page https://www.facebook.com/blackmilkclothing allows people to hash tag a photo and then populate it on their website like the link above.
Loading a series of tagged images from my facebook fan page to my website. I am not positive how this is acheived? I am assuming some kind of api process but any help in the right direction would be appreciated.
Thanks! All help is appreciated
See the 'tagged' connection of a Page in the Graph API: https://developers.facebook.com/docs/reference/api/page/
It returns a list of objects the page is tagged in, including photos
If you need background knowledge I suggest these links in particular:
Graph API overview: https://developers.facebook.com/docs/reference/api/
Page login: https://developers.facebook.com/docs/authentication/pages/
After a good bit of trial and error I've found the most efficient way to query photos tagged to a particular Facebook page is to use Facebook's FQL interface to retrieve a list of stream posts.
With FQL you can limit the queried objects to only those posts containing images (unlike with the higher-level Graph API calls which will return all posts, many of which may not have associated photos), and you'll also have more granular control over composition of the result set.
Keep in mind that Facebook doesn't have true hashtag support (only Facebook pages can be tagged), so to simulate the hashtag support that Black Milk Clothing encourages, you'll need to parse and filter the photo message text yourself.
As an alternative quick and easy solution, I've rolled the results of my efforts into a free online service called TagTray -- with TagTray I've added an interface for building and curating hashtag based galleries from Facebook, Instagram, and TwitPic (including application-level Facebook hashtag filtering) that can be framelessly embedded into a site with a few lines of JavaScript.

Any way to query either ALL Facebook Pages or the TOP 20% (by likes) using Graph API or FQL?

I want to build my own list of the most 'liked' pages on Facebook. FB itself appears to do a version of this, at least for each letter of the alphabet. Each directory page, such as http://www.facebook.com/directory/pages/A lists the top 20 most liked pages starting with that letter.
If I knew the IDs of every FB page then I could easily grab its like count using the graph API, but I don't know of a way to get that initial list. I'm sure it's huge, and honestly, I really would rather just have the top 20% or so of all pages. But if I had them all I could do the sorting myself.
I've searched the FB dev forums and looked through their docs but can't find a way. Queries using FQL don't appear to take wildcards either.
In FQL, you can search the page table by name. This doesn't allow wildcard searches though. Using the graph api, you can perform page searches using this url:
https://graph.facebook.com/search?type=page&q=test (You would want to future proof this by adding an access_token parameter to the end). A third option would by to use search engines to search for Facebook pages. Finally, you could scrape and parse the Facebook page browser by using this url.