retrieving apple contacts using web call - icloud

Is there a way to retrieve apple contacts like how you can get someone's gmail contacts with their API. Does apple have some kind of API for a web call using oauth or something similar for retrieving contact info?

There is no such thing. Apple will never allow it, its too risky to let the browser access contacts.

Related

How to get friend list using facebook graph api version 3.3?

I have access-token and using 3.3 version of facebook graph API. I am unable to get the friendlist of user. Can somebody help me to get friend list of person so that I can send them an invitation to install my app.
If it´s a game, you can use the Game Request dialog: https://developers.facebook.com/docs/games/services/gamerequests/
If not, use one of the Sharing Options described in the docs: https://developers.facebook.com/docs/sharing/
There is no way to get the friends with the API anymore, you can only access friends who authorized your App too - with the user_friends permission.

Corona SDK Facebook returns app_scoped_id and not my normal user_id

If I have understood it correctly Facebook made some changes so it returns app_scoped_id instead of the normal user_id.
The problem I have now is that no other function seems to work.
I receive an I id from Facebook, and it's the same each time I login, but if I use facebook.request("me/friends") the table is empty, if I use facebook.showDialog("friends") it
What do I need to do in Corona SDK to get this to work? Before I could use these functions after having setup them up in Facebook.
I read this thread explaining why this happen but it doesn't explain how to solve it in Corona SDK: Get Users App-Scoped user id in Facebook Graph API
As of Facebook API v2.0, friends list (/me/friend) returns ONLY user's friends who are already using your application. This limitation applies to all apps that are on v1.0 mode too.
If you're looking to get friends for tagging actions: https://developers.facebook.com/docs/graph-api/reference/v2.0/user/taggable_friends
If you're looking to get friends for inviting to a Facebook Game on Canvas: https://developers.facebook.com/docs/graph-api/reference/v2.0/user/invitable_friends
Cheers!

How do I get the list of facebook apps a user is an admin of using the Facebook Graph API?

Am using the Facebook Ads API to run ads. For running Mobile App Ads, I need to retrieve the apps which the logged in User is an admin of. I couldn't figure out from the documentation as to how to get this list of apps. Some stack overflow threads (How to get if a user is admin of a page (isAdmin) using the Facebook Graph API?) suggest requesting /me/accounts , but the just returns a list of facebook pages the user is an admin of. Could someone suggest some documentation in this direction?
The Graph API call /me/applications/developer returns all applications of which the user is an admin.
Read more here: https://developers.facebook.com/docs/graph-api/reference/v2.0/user/applications/developer
Doesn’t seem to be possible with the current API v2.0 – but it is with FQL, using the app_role table:
SELECT application_id FROM app_role
WHERE developer_id = me() AND role = 'administrators'
Test it in Graph API Explorer
(And yes, FQL is deprecated, but it will still be around for at least two years. And before they completely shut it off, they will implement query-like features in a future API version according to what I’ve heard from FB employees.)

email_hashes and deprecated connect.registerUsers

It is very important that Facebook Connect and Facebook app users aren't duplicated in our website. So if they already have an account on our website, when they connect through FB Connect or our Facebook app, we want to link rather than create another account. We typically do so by matching email addresses.
So I was excited to see an FQL field for email_hashes in the user object. However, that doesn't return anything. I think I need to use the connect.registerUsers REST api function to first send facebook all the email hashes for my users. That's fine, but that mechanism is now deprecated.
Is there a way to get email hashes from Facebook users?
The only way still is as you detailed and as is documented on connect.registerUsers. email_hashes will be populated if you first call connect.registerUsers and there is a email match. I wouldn't be too concerned about it being deprecated as I am guessing they won't remove this functionality without first migrating it the the graph api as they say they will do on the documentation page.

Facebook API Like a Page with Auth Token

I've got a Facebook oauth token and I'm trying to Like a page for a user who has given me permission to do so. Assuming 123456789 is the id of the Facebook page the user wants to Like, I post to this page and get the following error:
https://graph.facebook.com/123456789/likes?access_token=...
{
"error":{
"type":"OAuthException",
"message":"(#3) Application does not have the capability to make this API call."
}
}
This page of the Facebook documentation (https://developers.facebook.com/docs/reference/api/) says:
You can comment on or like any object that has a /comments or /likes
connection by posting to https://graph.facebook.com/OBJECT_ID/comments
and https://graph.facebook.com/OBJECT_ID/likes, respectively
The user wants to Like a Facebook Page and the Page documentation (https://developers.facebook.com/docs/reference/api/page/) shows that it does have a /likes connection, so it should be Like'able via the api... but it's not working. Any ideas?
Currently this is only possible with the old (and DEPRECATED) REST API. Using the method "pages.addFan". Though this method is not visible in Facebook's API Documentation.
So I assume that this is also possible somehow with the new Graph API, because their Facebook mobile apps will need to move on to their new APIs soon, and they make use of the Page Like function.
What's really weird, is that their brand new iPad app, is based on the old REST API! Interesting...