Facebook Insights API unique clicks - facebook-graph-api

I'm trying to match columns of Ad statistics from Ads Manager with the one I get through insight API (Marketing API), namely, Unique Link Clicks. Which field from https://developers.facebook.com/docs/marketing-api/reference/adgroup/insights/v12.0#fields does it correpond to?

I may not have fully understood the question you asked, but you say that you will make a painting, I think the ones in the image can work.cost per unique clicks

Related

Facebook API - Top 5 users for engagement and likes on fb page

I am trying to construct a Top 5 of engaged users and users that liked something on my Facebook page(a non-profit)(for instance posts, links or images). It has to be an aggregated total of engagement and likes for all items on the page per user.
Can anybody provide with some clues as to which Facebook API calls I could use for this. At this moment I am only capable of determining which users liked the page, or a particular post.
If the question is too general or anything else, I'll gladly modify it. I would have liked to attach image for clarification, but is not a possibility for me yet due to reputation score.
The only way to do this is to get all likes/comments/whatever from every single post with the API, store the numbers in your database and compare User IDs. You would have to keep it up to date too, so you would need to refresh your database entries from time to time.

How to develop a button for followers of a web site

I apologize for my English it is not very good.
I am developing a website that will have own followers.
I need to create a button by followers such as facebook, twitter or google plus buttons.
Thank you for any information that will allow me to begin to develop the button next to the platform.
Thank you
First, your English is fair enough. For creating your own follow button you will have to have an image that will be displayed on your website. When someone clicks on that button, your webapp should be able to know who clicked it and your should be able to remember that user in future as well. So first you will have users to register on your website (like facebook and twitter) for unique identification of each user.
Next, for remembering that a particular user is following your website you need to persist some information about that user. The obvious approach is having a database table to store the information. For instance you can have IS_FOLLOWING column in your USER table
But there are some considerations. First, the user must remain on the same page or be able to continue his activity even after cicking the follow button. For example, if the user is filling some form then his data should remain intact even after clicking the follow button. If the user is directed to some other page, he might lose information.
Second, database operations are costly. So you need to use them wisely.
One approach that I could think of is having AJAX do the work. If you want to learn AJAX you can visit this website and for AJAX database operations this one will be helpful.
Ajax will do all the work in background and both the problems mentioned above will be addressed. I hope this was helpful.

Adding "aggregations" to my Facebook application

I don't understand how to add aggregations to my application on Facebook graph.
I submited my application to Facebook and I got the answer "changes needed":
"Note: If you are creating an aggregation based on the object, you need to add 6-7 unique sample objects, and then create a corresponding sample action acting on each of these unique objects. (You can not just create 6-7 sample actions pointing to the same sample object). Submission Checklist: https://developers.facebook.com/docs/opengraph/checklist Please make changes below and resubmit for review."
What do I need to do?
I'd say this documentation page is a good start.
http://developers.facebook.com/docs/opengraph/define-units/

Comments though Real-time update API

I'm trying to develop an analytics application for Facebook and I would like to count for example the number of comments a user has submitted to any kind of objects (posts, links, photos, etc...)
From browsing though the Facebook API I've noticed that the comments table is not indexed on the from user id field which means that we cannot query, for the comments starting from a user object (one has to first use a post or other object to get the comments).
I'm wondering if I could get a notification through the Real-time updates API when a user posts a comment. Also what exactly are the fields one could get notifications about through the real-time API (namely all the fields
The fields that you can get from Real Times updates API are descripted in official docs[1]
[1] http://developers.facebook.com/docs/reference/api/realtime/

GRAPH API - retrieve Posts on a fan page

I am using the Graph API in order to obtain public posts which contain the keyword passed as query parameter (the call syntax is like this :
https://graph.facebook.com/search?type=post&q=%22bwatcher%22&limit=50`)
By reading the results, I think that I only retrieve public statuses.
I wonder if it is possible to obtain some posts on a fan page or a group (considering that the fan page and the groups are public)?
Updated edit from OP
What I would like to know is that if there are conditions or parameters that make the publications on a page fan wall or on a group wall available by querying the graph API ? (Is there a number of fans required, a number of group members ? Are there some privacy settings which make publications unavailable thanks to the graph API ? Are there page fan categories for which publications are avalaible are others for which they are unavailable ? etc...).
Yes, if you have the object id then you can just get the feed and other connections for it. It needs an access token though, so you have to authorize a user for it.
http://developers.facebook.com/docs/reference/api/page/