Is it possible to use the FB GraphAPI to call posts / comments using specific keywords so that this content can be shown on an e-commerce site search results page?
For example, a user on myhandbags.com searches for 'gucci handbags'. As well as the usual product search results, there is a tab for 'Social posts' - in this tab content from Facebook is shown that matches the search query 'gucci handbags' (so perhaps that phrase is contained in the post/comment).
So the site would need send a GET request to FB when the query is submitted and then fetch the relevant content and display it on the search results page.
Related
Facebook Ad Report tool allows to select from wide selection of columns for displaying. One of them is Website Clicks, which is defined like this:
The number of clicks on links appearing on your ad or Page that direct people to your sites off Facebook as a result of your ad.
How to obtain this column from Facebook API? The official documentation at https://developers.facebook.com/docs/marketing-api/adreportstats/v2.2 doesn't mention this type of column. Is there any workaround?
You'll find them under the action response field if you use the field 'actions_group_by' set to 'action_type'. They will appear as 'link_click'.
I am using the facebook search API to find posts that include my keyword. I noticed that the posts returned always belong to facebook profiles but never facebook pages. To back that up, I searched for keywords of low frequency which I spotted in pages but the API did not return them.
Is there any way I can search by keyword and get posts from pages too ?
Taking a look at the documentation: Just search with &type=post. From that documentation:
All public posts: https://graph.facebook.com/search?q=watermelon&type=post
I was looking out the solutions but no luck for getting the list the users who likes your Facebook page. I found out the following solutions over internet but all have some limitations. Please suggest??
Facebook provides like table where we can provide object name to get the list of users who likes your Album,Photo etc. But I didn't find to get this work for a Facebook Page. It is working for photo,album etc.
Second options with page_fan table but i notice that only the uid field is index able so you need to know the user id to search it and not the page_id.
Finally i added the Like Box in my applications where I am showing the list of user with their profile picture but here is also limitation with face book like box that i can't see the entire list of the users who likes the Facebook Page. It is showing only 20-30 in the Like Box. If i was trying to change the iFrame div CSS to overflow:auto but their is no success because i think iFrame with other domain url doesn't allow the same.
Can someone help me out how i can get the all Facebook User's profile photos who likes my Facebook page with any 3 options or let me know if any other options.
In the Insights FQL documentation I see the application_tab_views metric listed, but it appears to only show the total Tab impressions over all of the pages the Application is installed on.
The "object_id" in the query is an Application Id, not a Page Id. I don't see a way to add additional "where" conditions to limit it to a specific page. Also, I don't see this metric listed in Pages Insights API.
I am wondering if it's possible to query the number of application tab views on a per-Page basis? Through the regular API or FQL?
In the Page Insights dashboard you can see Facebook is collecting this data (on the "Reach" sub-tab):
My client also wanted these statistics - my solution was to parse the signed_request that the tab receives, the current page_id is in the data and I managed those statistics in my own database. The data is in a parameter called page. From the documentation :
page : A JSON object containing the page id string, the liked boolean if the
user has liked the page, the admin boolean if the user is an admin.
Only available if your app is an iframe loaded in a Page tab.
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.