facebook user inforamtion along with contact number - ios

I needed facebook user info in my app. For it I have used "https://graph.facebook.com/me&access_token=%#" I am getting user info properly. But unable to get the contact number of user via graph API. Can't we retrieve contact number of user from Facebook? Please help me.
Thanks to all.

Sorry, but we can't retrieve the Contact Number of the User through the Graph API as the contact number is not exposed to present APIs.
Update
The removal of this data has also been mentioned in this blog post.

Related

Does google return list of friends who are already using my app like facebook?

In my app sign up is possible from both Facebook and Google. And there is a requirement for accessing friends list/contacts to check who are all my friends that are already using the app. Now, Facebook already returns the response as a list of friends who are using the app that I integrated the FB SDK in.
I want to know is there any way to get list of contacts that are already in my app using Google APIs? Or I have to fetch emails of my contacts from Google and manually check in my DB if they exist or not and decide on my on?
Thanks in advance.
Cheers,
Rahul
I am the product manager for Google Sign-In. This is no way to get a list of users who already using a service ... you would have to request access to and fetch a full list of a user's contacts and check for existing users in your own database.

How can My App Tweet the Contents a User Submits?

Note: I am posting this because I don't even know what to Google search. I know we're all about thorough research before asking these questions. Any help would be appreciated.
Scenario: User writes a text post from my app and when they submit it, the content is added to a Parse.com class (I know how to do this) and simultaneously it is tweeted from a designated twitter account (that does not belong to the user) let's say #MyCoolAppThatTweets.
In other words, I don't want the user via my app to be permanently logged into #MyCoolAppThatTweets twitter account, but have one-time access to send a tweet from it.
Another way to phrase this question would be: How can my app log into a specific twitter account whose credentials I can "bake" into the app without compromising the security of that twitter account.
I am already aware that normally, users of an iOS app wouldn't automatically want their content being tweeted. For the project I'm making, this is not going to be a concern (it's a secret).
If you need more information or if I need to post this elsewhere, please let me know!
From your question I am not sure if you are familiar with "Twitter part" of Parse.com and Twitter REST API. If not please start by reading this https://www.parse.com/docs/ios/guide#users-twitter-users (or take a look on official Twitter way by using their plugin called Fabric: https://dev.twitter.com/)
Since you mentioned PFUser I will describe you how to achieve it by using Parse.com API.
First your user must be logged in to Twitter account.
I suppose that your user is already logged in into your app as a PFUser so best way to log him into some Twitter account is by linking Twitter account with existing PFUser - https://www.parse.com/docs/ios/guide#users-linking.
After that you can post tweets through user's Twitter account (if permission was granted). I recommend doing that using Parse.com Twitter API calls https://www.parse.com/docs/ios/guide#users-login-amp-signup. To create API requests you need official Twitter REST API which can be obtained here https://dev.twitter.com/docs/api.

Mutual friends of two users who are not friends on facebook using Parse and Facebook SDK

I am using the latest Parse SDK 1.7.1 and Facebook SDK 4.0.1 on my iOS application. My users can only log in using their facebook account.
A very important feature I need, is showing the number of facebook friends user1 has in common with another user2 (who is probably not friends with user1 on facebook). Let us assume for the following that I do get the user_friends permission from both users.
My first question concerns the following quote from the Graph API docs:
Additionally, the response will only include any mutual friends who
have granted user_friends to the app.
Does this mean that user1 will only see mutual friends that also use my app? Is it possible to just retrieve the number of mutual friends, without the actual list of friends?
My next question concerns the following statement in the Graph API docs:
If you want to call this endpoint on behalf two app-users who are not
friends, then you must provide the appsecret_proof parameter along
with the user access token when making the request. This means you
must call this endpoint from your server.
How does this work together with Parse? Would I need to do this in Cloud-Code? If so, does anyone happen to have some example code for me of how to do a Graph API request from Cloud-Code? I am not familiar with Cloud-Code yet.
Thank you very much in advance for your help, it is very much appreciated!

Getting full list of facebook friends through graph API

I have IOS app for that login is through Facebook, For some feature I need full list of friends.
With current version of Graph API calling "me/friends" only returns person's friends who also use the app.
So now getting full friends list not at all possible or is there any way to get full list.
Also I need to invite my friends to use the app.
Note: App is not a Game app.
Thanks in Advance.
Despite what the earlier comments on this question might tell you, this is 100% possible with the me/taggable friends endpoint in Graph v2.0.
However there are three things worth noting:
Facebook is strict on the usage of this endpoint, so you'll need to get your use of it approved by the review team.
Taggable friends can only be used in the context of "friends you're about to tag on Facebook.com". This endpoint cannot be used for any other purpose.
When you query me/taggable_friends, the id returned for each user is NOT their Facebook id. It is a short-lived token that can be passed via the API to instruct Facebook to tag that user.

How to have a FB application create a personalized post to a user

I've read over some of the developer material and have not seen a way to have an application send facebook users personalized wall posts. For example, FB users who likes "Mustangs" could receive a post from my application when there is news specifcally about Mustangs. However, FB users who didn't select Mustangs would not receive the post. Is there a way to do this on the FB platform for applications?
FYI - The only success I have had is sending a post to a user which appears to have been sent from the user as if the user is posting to themselves. Only upon close inspection can one find the text "via application xyz" next to the post time.
Thanks for taking the time to read and respond.
Yes, you can do this with any of the frameworks. See https://developers.facebook.com/docs/sdks/ Also study up on the Graph API (pay attention to the from attribute of a feed item, testing it out using the graph API Exporer: https://developers.facebook.com/tools/explorer

Resources