Replacement for if-is-app-user - php

Now that FBML is depricated, does anyone know the best way of returning a list of friends that are also using the same app.
Thanks

From the is-app-user documentation
Please note: We are in the process of deprecating the REST API, and have added
equivalent support to the Graph API for this method. Please use the Graph API
User object and GET /[UID]?fields=installed to check if a user is has TOSed that app.
Also, you already should have the uid of all users of your app, because you have your own state saved, so you could just use that.

Related

Get people detail from microsoft in php

I want create php app for get login users contacts details form Microsoft(outlook).
For that I used below way but I can't proper result.
curl_setopt($curl,CURLOPT_URL,'https://login.live.com/oauth20_token.srf')
https://graph.microsoft.com//v1.0/me.
Try to use the latest Microsoft Auth Way
https://login.microsoftonline.com/common/oauth2/v2.0/authorize
but not
https://login.live.com/oauth20_token.srf
More suggestion: get started from the official docs then change to your code. Do not fully write your own framework before you have already familiar with the graph product

How to read facebook timeline with Graph API?

I need to read facebookk timeline and some tutorial says me to read with API Graph and I use:
https://graph.facebook.com/***/posts?access_token=***
but when I use this code I obtain {data[]} . I don' know how I wrong. Anyone can help me?
You question is pretty broad.
Did you use the Facebook API explorer? Found here
Are you sure the token is valid?
I am pretty sure what you are doing wrong is your call above is un-versioned so it will default to v2.0+. Which means you can't query based on user name. Next if you are using a user Id in the middle *** it will return empty because that user hasn't authorized the app that got the token, and/or has decided to hide themselves from open graph calls. You can use a public page ID in that spot to get that page posts.
Give this a try
https://graph.facebook.com/ME/posts?access_token=***
Provided you have a valid token it should work with unversioned calls. I suggest you play with the API explorer linked above.

url_like in graph API?

I guess there is no answers for my question, but i want try anyway :)
I'm moving my app from the V1 API to the V2. (i'm using the Facebook PHP SDK but this is not important). As the FQL is now deprecated, i want to remove all my previous code that used it.
The last thing i can't perform with the graph API is an old call to the url_like FQL table : i just want to see if the user likes a given URL (which is not a Facebook page) or not.
Is there anyway to do it without FQL ?
Thanks !
There is no way to do this with the Graph API afaik. BUT: Never try to hide Like Buttons because the user liked something already. The user should always be able to unlike at the exact same location where he liked something.

support new facebook API instead of $facebook->api_client->profile_setFBML($profileContent);

I looked at Facebook page, and they not supported with the PHP Api:
$facebook->api_client->profile_setFBML($profileContent);
can anyone help me with another possible API to use.
Thanks
The profile.setFBML method is deprecated, and about to be phased out entirely. You won't be able to use it anymore, and indeed, there is no point, since the profile boxes are going to cease to exist as well.
You are going to have to migrate whatever it is you're doing to Application Tabs instead. It will be the only way to put application content into a user's profile very shortly (timeline is "Early 2010").

Get Twitter User Details without Authentication

I have noticed some Twitter Applications manage to get a particular users Location, Name, Profile Image etc using just the twitter username?
Hows is this possible?
I ask because I have not come across any where in the Twitter docs on how you can do this. I can get a users details myself using oAuth when the user provides my app permission but thats it.
Would be grateful if this could be cleared. I hope its not the use of CURL as this is not a good idea in my eyes. If there is another way, is there a PHP implementation that I could use.
Thank you for any help.
Update
I did not know that existed! Is there a PHP wrapper or class someone has written to use that ? Sorry, I am complete noob and I relay on wrappers and simple function calls!
It's returned by the users/show call from the API.
For example:
http://twitter.com/users/show.xml?screen_name=dougw
The API wiki lists a PHP library FWIW.

Categories