How to know if my facebook friends have my app? - ios

i have a huge problem that i think you might solve in a second. I've tried thousands of different codes, but i haven't succeeded in none of them, some were using an old Facebook SDK for instance. My issue is simple, i want the user to know how many of his Facebook friends got the application, like that i could sent them a notification through my iPhone app. I found a field called fields=installed in the Graph API, but how can i code a method to know who are those friends, and how many they are.

You query the friends field /me/friends?fields=installed,name
Which will give a list of friends with either installed field set or not.

This SO answer could answer you question. Though we have to search through result for installed tag
It uses the new FB SDK

Related

How to fetch Facebook user's full friend list in Facebook iOS SDK

I had a question concerning the Facebook iOS SDK that has been troubling me ever since i started my iOS project so I thought I could post it here to see if any of you had wisdom to share on this matter.
For my Facebook connected app to function properly I need to have access to the Facebook user's complete friend list along with their names, ids and profile pictures. After some intensive research I was surprised to learn that in version 2.0 of the Graph API Facebook has made it so that you can only retrieve a friend list of your friends who are currently using the app and have approved the app. This kind of data doesn't really work for my app as the main point is that you are met by your friend list as opposed to an empty list with only a few people who have approved the app.
My question is if there is any possible way for me to have access to the user's full friend list and display it in a table view with their profile picture without every single one of them having to approve the app. I don't mind if it is a complicated solution. The reason I ask this is because i have seen several apps that can fetch full friends lists such as:
http://www.connect.com
and
http://www.birthdayboardapp.com
and they must have found a way to do it as the way Connect displays the user's friend list is exactly the way I would like to do it i.e. in an iOS contacts app style way.
I would be grateful for any guidance or solutions,
Thanks Again!
P.S. Here are some questions I have previously looked at but do not suggest possible workarounds
Facebook Graph Api v2.0+ - /me/friends returns empty, or only friends who also use my app
Get ALL User Friends Using Facebook Graph API - Android
There are no workarounds, if it works in some other App then it just means that they are still using a Facebook App created before end of April 2014. They will stop getting the full friendlist after April 2015, when v1.0 Apps will get upgraded.
There are ways to get the whole friendlist like invitable_friends and taggable_friends, but those endpoints are supposed to get used for very specific tasks (for inviting in games and for tagging).

Initiate Facebook Group Chat from iOS App

I want my app to create a new Facebook group chat with certain people that opens either on Facebook's site in Safari or in the native Facebook app when the user presses a button. I want Facebook to handle the whole chat and my app only to initiate it somehow in the cleanest and least involved way possible. My app already uses the Facebook SDK to open an active FBSession, so I've already got login credentials.
Looking around online and in Facebook's docs, I can't find anything that suits my needs. The closest thing I found was in this answer containing a list of Facebook app URLs you can connect to that open the Facebook app to certain pages. There's "fb://chat/(initWithUID:)" and "fb://messaging/compose/(initWithUID:)". However, not only is there no explanation on how to use these, but people say that Facebook has changed these URLs (and does not have any documentation on them), so they don't work anymore unless I reverse-engineer new URLs (which could change again). Ugh, so close!
I also found examples on starting chats with the Facebook Chat API, but that involves logging into Facebook using some networking framework then writing my own GUI and model for sending messages, which I am only prepared to do as a last resort. There should be some way to let the Facebook app or website do all that. Does anyone know how I can do this?
I've found something very close, but I still don't see a way to make my app initialize it with the desired group of friends:
The Facebook SDK has a message dialog that can appear for sending messages to friends. This isn't exactly what I wanted but is good enough because it means that all the programming is already done for me by Facebook, and users should be able to see these messages on https://facebook.com and the Facebook apps. https://developers.facebook.com/docs/ios/share#message-dialog

Facebook get user status

In my iOS application, I am trying to implement Facebook but am running into a problem. I currently have the user logging in as well as I have implemented the friend picker. I am looking to now have it so when the user taps a friend it will show their status(last post in their feed. e.g.."In NYC on broadway!"). I did a lot of research online but am getting very confused. If someone could point me to good tutorial or could just explain this that would be great. I believe I have to use open graph but other then Facebook's tutorials I can't find any. Are there any tutorials other than on FB?
You can access a user's feed by calling /<userId>/feed (https://developers.facebook.com/tools/explorer/?method=GET&path=me%2Ffeed). Then, look for the first element on data array where "type": "status".
I think that the answer you're looking for is here, with the exception that you'll basically (I assume) display a list of friends with their profile pic. When clicking on the profile pic the user will see their status? Or you could try to do it all in once (friend name, pic, friend's last status). The facebook developers url they refer to in that post is here

Simple Facebook issue: How to get invited friends' IDs with facebook connect for iOS

So my challenge is getting the facebook IDs of friends I invite to my app via the facebook SDK for iOS.
I guess this is done in the dialogCompleteWithURL:NSURL method - but how?
Any help is greatly appreciated as always.
All the best!
And of course, as usual, fatigue obscured the oh so simple answer to this problem.
Just loop through the url that is passed to the dialogCompleteWithURL method and collect the IDs that way.

Facebook: "URL could not be liked because it has been blocked" error in iOS app

I'm working on an iOS app that allows the user to like a Facebook page within the app. I've implemented this using FacebookLikeView. During the course of testing this functionality, I've liked and unliked the same page multiple times. Unfortunately, this seems to have triggered Facebook's spam detection. Now, when trying to like a page using the like button displayed by FacebookLikeView, the following error is presented: "URL could not be liked because it has been blocked".
Based on reports of the same problem found by searching the web, I've filled out this form to request that Facebook remove the block. However, I've received no response from them. I'm not sure how to proceed. Has anyone else run into this issue and successfully solved it?
With billions of pieces of content being shared on Facebook every month and bad actors constantly targeting the people who use Facebook, preventing spam isn't easy. Just as a community relies on its citizens to report crime, we rely on you to let us know when you encounter spam, which can be anything from a friend request sent by someone you don't know to a message that includes a link to a malicious website.
From : Explaining Facebook Spam Detection
This is no answer and what Donn Lee said is maybe the best answer.
My best guess at this is to send them lot information regarding you testing the app rather than abusing the system. You could try screenshots, contact info and explain what you are testing it for.
Try : Facebook Help Center
Developer Help : Rate Limits, Restrictions and Disables
Try filing a bug on the Facebook Developers Bugreporter.
If it's been a week and the site is still blocked, submit your site on this form.
if it comes down to no other option, there is also unrelated contact info on Facebook Newsroom, including the e-mail address press#fb.com.

Resources