How To Unblock Facebook Server?

What is the best approach to upload a photo taken in the iOS app to Facebook and our server?

  • When the user takes a pic on the iOS app, the following would have to be done (in no particular order): The photo has to be uploaded to our server. The photo has to be posted on to Facebook What is the best approach to do this ? Scenario 1: iOS app uploads the photo to our server iOS app uploads photo to the Facebook Scenario 2: iOS app uploads the photo to the server Our server uploads the photo to Facebook Questions: Which approach is better (scenario 1 or scenario 2 or is there any other better approach) ? Which approach is followed by other apps which do stuff like this. (apps like Instagram / Foodspotting ) ?

  • Answer:

    You can use something like https://ifttt.com (If This Then That) And create a recipe: IF iOS app posts a picture to FB THEN Upload photo to FTP server.

David Rosen at Quora Visit the source

Was this solution helpful to you?

Other answers

Best approach is don't do it. For one thing, it sounds like a misleading feature - if I hit a Facebook button I don't anticipate a photo going anywhere but to Facebook. What if I want to delete it later, do I have to delete it in both places? Is there even a delete interface for your server? etc. As for which is a better approach - what you've termed approach 1 means two file uploads, draining the user's battery just an extra smidge. Scenario two shows a bit more respect for the device's resources. However, you then need to create a server-side implementation to interact with Facebook.

Brian Papa

If you absolutely have to do it in both places, I would suggest scenario 2. Scenario 1 is easier to implement but that means 2 uploads from the app. Scenario 2 is faster in terms of user feedback. Can't say for sure what approach instagram or other apps follow, but based only on the timestamps of the images uploaded and the time in which it happens, it looks like they use the 2nd scenario as well.

Lata Sadhwani

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.