I am getting blank user_intrest from facebook in my ios app. - ios

I am using graph api for getting user_intrests field. But it is returning blank everytime.

You should use /user/interests API endpoint instead of user_intrests.
N.B. user_interests permission is required to return interests

Related

Microsoft Graph API get message returns empty string

I am querying to get a single message from the Microsoft graph API like the following:
https://graph.microsoft.com/v1.0/users/<name>/messages/<id>
However, i am getting a response that is just an empty string. If i make the same request using the beta version of the api like the following:
https://graph.microsoft.com/beta/users/<name>/messages/<id>
The email in question is a calendar share invitation of content-type of "application/ms-tnef" and content-class of "Sharing" in the email headers.
I can't find any documentation indicating this is a known issue in the system. Is there any way to get this to work in the graph API or is the only work-around is to use the beta version instead?
Using Graph Explorer, and recreating your request using their demo accounts returns a result in v1.0. I assumed by name you meant the user's email address and I made the same request using the Guid id of the user.
https://graph.microsoft.com/v1.0/users/MeganB#M365x214355.onmicrosoft.com/messages/AAMkAGVmMDEzMTM4LTZmYWUtNDdkNC1hMDZiLTU1OGY5OTZhYmY4OABGAAAAAAAiQ8W967B7TKBjgx9rVEURBwAiIsqMbYjsT5e-T7KzowPTAAAAAAEMAAAiIsqMbYjsT5e-T7KzowPTAAHi4GJzAAA=
https://graph.microsoft.com/v1.0/users/48d31887-5fad-4d73-a9f5-3c356e68a038/messages/AAMkAGVmMDEzMTM4LTZmYWUtNDdkNC1hMDZiLTU1OGY5OTZhYmY4OABGAAAAAAAiQ8W967B7TKBjgx9rVEURBwAiIsqMbYjsT5e-T7KzowPTAAAAAAEMAAAiIsqMbYjsT5e-T7KzowPTAAIgOnGGAAA=
Have you attempted the same request using graph explorer?

Facebook Graph API: (#200) Permissions error

Using /{event-id}/attending method call from iOS. I worked for long time, and nowadays Get no result, and this message. Do you know why? What changed?
In iOS app, list of user is just empty.
In Graph API Explorer some error I get. I do not know why two results are different? And we it just not works as before?
That endpoint is deprecated now:
https://developers.facebook.com/docs/graph-api/changelog/breaking-changes#events-4-4
https://developers.facebook.com/blog/post/2018/04/04/facebook-api-platform-product-changes
Deprecated: Endpoints that return data including /feed, /posts, /comments, and the RSVP list.

Google Place Api for getting autocomplete sugggestion for places

I m using google api for autotext completion. but i m getting could not fetch places. request Denied. I have tryed with also server and browser key. but still getting same responce.
You need to create browser key, and leave the site blank.

Instagram API hash to return all follows no longer works

For months, I have used the following hash to get all follows of a given logged in users back from the Instagram API:
https://api.instagram.com/v1/users/self/follows?count=-1&access_token=%#
The count=-1 being the key parameter to achieve that.
My app started to return empty dictionaries back from the Instagram API from one day to the next.
I found out that this was linked to the count=-1 no longer working on the Instagram API.
Would anyone know what the new syntax might be now?
I couldn't find anything on other web sources.
Thanks!
Just update the url to
https://api.instagram.com/v1/users/USERID/follows?access_token=TOKEN&count=COUNT
Where:
USERID - your user id
TOKEN - the access token
COUNT - how many users you want get

Getting authentication to search nearby places using Facebook Graph?

I am trying to use Facebook's Graph API to get nearby places but when I try https://graph.facebook.com/search?type=place&center=37.76,122.427&distance=1000 , I get an authentication error. I registered my mobile application on Facebook but I am not sure how to authorize it so that I can search. How can I do this?
You need to add the access_token to the GET params you're sending. Also, you can add a q='query' param to search for an exact term like airport or cafe...
https://graph.facebook.com/search?type=place&center=37.76,122.427&distance=1000&access_token=2227470867|2.BsVGGHo_rW5YzHPWjk4UMw__.3600.1304935200.0-100001037215362|5jSEZH-iCmFUB7A8myjG98IZVVQ

Resources