How to get Facebook Alternate Name via Graph API? - facebook

I am using the Facebook Graph API and Facebook Connect to make an authentication system in Wordpress. The Connect part goes all ok, the Facebook Graph goes ok as well.
But: How do I fetch the Facebook Alternate Name? I searched the docs at http://developers.facebook.com/docs/reference/fql/user/, but found no trace of it. Any ideas?
The main idea is that privacy is a concern, and the system goes better nickname based than just last name based. If the Alternate Name is empty I just ask the user to enter a nickname.

I think that it is not exposed yet, when i was looking for this, i made a work around...
I know that if you use the search_tokens field at user table, the array will have the alternate name... If you have luck, the array will contain the first, middle, last, and the alternative name, so, compare the arrays to the names, and exclude the know names, the other one is the alternative name....
Look this bug:
https://developers.facebook.com/bugs/371978199536659/

Related

How to enumerate list of registered users

From reading the technical documentation for ConnectyCube, there does not appear to be an API to enumerate registered users nor is there an API to test whether user is logged in. Is my understanding correct ?
Just figured out, I can tag the different users and enumerate based on the TAG.
Here you can use diff APIs to retrieve users https://developers.connectycube.com/flutter/authentication-and-users?id=retrieve-users
Also, there is chat activity last request at API https://developers.connectycube.com/flutter/messaging?id=get-last-activity
which can be used to determine whether a user is online or offline
Also, you may provide a detailed explanation what you gonna build, so there will be more specific suggestion

How to get like/share/comment data off of Facebook

I need to write a program for retrieving like/share/comment information from different groups I am the admin of on Facebook and tally up how many likes.shares/comments on each person does on the page to determine who is participating the most on different groups. But I have not done anything like this before so I was hoping to get some suggestions on how to do this. I would like to do it in Python or C++ if possible since I am familiar with those languages. But I am open to using PHP as well. Thanks in advance for any good suggestions.
This should get you started: https://developers.facebook.com/docs/groups-api/common-uses#getting-group-posts
For comments, shares and likes you would need to request the respective fields/endpoints by adding the fields parameter to your call. However you cannot retrieve user data unless your app had been reviewed and approved. So for testing purposes you can only test this with your own posts/shares/comments/likes.

Get previous name changes in facebook graph api

I'm looking for a graph API that returns me a list of previous name that were changed by the user.
One Way to do it manually is by going to Settings of your profile -> Download a copy of your Facebook data.
In the HTML files obtained it clearly mentions the previous names changed.
My question is there a graph API for the same ??
Thank you.
https://developers.facebook.com/docs/graph-api/real-time-updates/
There are fields for name, first name and last name. You can only subscribe to updates, but afaik there is no way to get past changes. But since you are required to use your real name on Facebook, it should not happen very often - unless you marry a lot ;)

Is there any way to get a list of users for a custom audience?

Getting other details is easy, but there doesn't seem to be any API accessible way to get a list of users (or even approximate users) for the audience. You can add them, and delete them (?!) but not enumerate all the users in the list.
Is that truly the case, or am I missing something?
According to the documentation here: https://developers.facebook.com/docs/reference/ads-api/custom-audience-targeting/ you should be able to see an approximate count.
There is no way to get the users back from the custom audience list by design.
For the audiences you never upload raw contact data. You always have to hash it via SHA256 and send the feed to Facebook that way. Since you have not provided the actual contact information like email, phone number facebook won't give those back to you it would be an information breach in a way.
If what you are asking is whether you can retrieve back the hashes that you have sent, I have not been able to find a way it on the API so I assume they think that you already have that list since you uploaded it in the first place.
https://developers.facebook.com/docs/marketing-api/audiences-api/

Adwords Impressions, Clicks and Cost, how to get these?

I'm developer for marketing company and I need some help with facebook ads. I've been trying to find method for getting data AUTOMATICALLY from facebook campaign that's created by the user.
I'm trying to create script that would get data for server.
So basically I need to get Impressions, Clicks and "Cost of clicks" from each day from facebook-ad-campaigns just by having user login data (username,password) and maybe the id-number of campaign being targeted.
Also if possible I'd like to know how you can shut down campaign(when cost of clicks is greater than budged used).
Are these operations possible? Can I use PHP/FQL for it? Can I get these via Url? If I need to use FQL, what tables I need to fetch data? Anything that can be performed without manually logging to facebook? If so, could I get some example code to do it for me? If it has something to do with Access Tokens, what kind of access rights do I need to grant for it?
Can it be possible to ask more questions in one question than you just did? Wow.
Answers are in order of them asked above. But I will not be answering any followup questions in this thread.
For most of your information can be found at: http://developers.facebook.com/docs/reference/ads-api/
In your code, set a trigger when it has reached that value in the adstatistics, then use the Ads API to shut it down using the pause feature
Yes, use the Ads API. http://developers.facebook.com/docs/reference/ads-api/
For some parts of it you can, for other parts you'll use Graph API object.
Yes, that's how the graph works.
Tables are listed in the documentation at http://developers.facebook.com/docs/reference/ads-api/
Nope.
Yep, example codes are there.
Yes, it sure does.
see https://developers.facebook.com/docs/reference/api/permissions