View Instagram From The Perspective Of A Celebrity, A Presidential Candidate, Or A Close Friend - parsing

In 2016, there was an app "Being" that performed this function:
https://www.buzzfeednews.com/article/brendanklinkenberg/this-app-shows-you-what-other-peoples-instagram-feed-looks-l
"Being is an app that lets its users see what Instagram is like for someone else. You log in with your own Instagram account, then choose who you want to be. It could be a friend, it could be a partner, it could be a celebrity, it could be a presidential candidate — anyone with a public account on the photo-sharing service can be accessed. You can even click a button and parachute into a completely randomly chosen person's feed.
The app uses Instagram's API to pull all of the "Following" data from a given account and organize it into a feed. So, if you've ever been curious about what Taylor Swift actually sees when she logs into Instagram — minus the many thousands of notifications from adoring fans — this is the app for you."
Unfortunately, Instagram has removed data access from the app, so it's no longer available. It annoys me that Instagram restricts access to its API.
Does anyone know how to recreate this function?
Can I do this in the Instagram developer environment?
It has to be possible - there has to be a way around it.
One idea I have is instead of using Instagram's API, the content from all of a user's followings is parsed.

Related

Using Facebook's SHARE button pre-populated texts

I've read on Facebook's policies that in your SHARE button the messenger's can't be pre-populated at all. No matter if it's a little message or a URL. It must be 100% user generated. Which sucks for the iOS and Android developers because the SHARE button is one of the best ways to market your app. However, in the App store i see a lot of big gaming companies and developers using the Facebook share button with pre-populated texts and URLS. Some of these games are in the top 20 downloaded apps. I can't believe Facebook doesn't see that. Maybe they don't care?
Even though it's against Facebook policy, does Facebook penalize developers for posting pre-populated texts even though those texts can be edited before being posted? Any developer have an experience with this?

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).

Facebook iOs Leaderboards

I would like to use the Facebook Scores API to make a social leaderboard for my iOS game.
From the documentation, I saw that it would require to request a publish permission so that I could post scores. The thing is that I don't want to publish to the player's wall (I simply think it's invasive), I just want to use the API backend to store the score, but everything I saw involved posting to the user's wall in order to write the score on the backend.
How should I proceed to only write the score without posting it into facebook?
If this thing exists, can I avoid requiring the publish permission?
Thanks
If you simply use the Score API as intended, the user will have the option of choosing whether to give your app the visibility permissions like "private, friends, public, etc". That lets the user decide what is invasive rather than you deciding for them.
Here is a related stackoverflow question with the opposite question, showing how users have control over what is shared with the API:
Facebook scores blocked by "only me" visibility

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

How to share links via FB App when I am offline

I am developing an mobile app for iPhone. The app will primary used by people who are on holiday in a different country and will be offline most of the time, due to high costs for internet traffic.
However, the company for which I am developing the app wants to users to be able to use the "Facebook Share" functionality also when people are not connected to the internet.
It should work on a way that they click the SHARE link button in the app, but then get a message that they are offline and the link will get shared as soon as they are online again.
I am trying to figure out how to do this. Can I pass the link I want to share to the official FB App via fb:// protocol (or whatever) and the FB App handles the post/share as soon as it is online again?
Or do I have to do it on my own, put the links I want to share in a internal database and then post them to the wall when I am online again?
Or any other ways??
Any suggestions would be welcome, I would prefer a very quick solution and hope someone maybe has an idea how to do this. I was hoping I can pass the share-link to the official FB App and this one handles everything when it goes online again !?
Thanks for your ideas!
Your approach should be to make your link-sharing code automatically cache requests until they are sent. The app then doesn't need to concern itself with the details - it can just post the link and get a 'failed', 'success', or 'postponed' response from your API and notify the user accordingly.
Your link-sharing code can then internally check if it can currently post to FB and if not (either because the user is currently offline or perhaps the Facebook token is expired) it will store it for later. This class will then re-check periodically (for example when the app comes to the foreground or when the class is initialised the next time the app starts) for connectivity and then it will check if the token is still valid and perform FB login if required. Once it has a valid token it can then iterate through the pending requests and act upon them.
If you really want to make it nice and clean, you can separate out the code that accepts incoming requests to do something, checks if it can be performed now, does it or stores it for later, and periodically checks any requests in the pending queue. This class will not have any idea what the requests do or how they are performed, it will work with another class that implements a protocol to do the actual work and knows about facebook, etc. There may even be an existing design pattern for such a setup, but I don't know what it's called if there is.
Update: I did some research and found this is very similar to the "Fire-and-Forget Pattern".

Resources