Architecture for iphone app with facebook connect [closed] - iphone

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
I'm working on an iphone app and i would like to seek advices on what's the best architecture for it.
Basically, the app implements facebook connect for users to login. Users will be able to select their friends whom they can message/send photos to (think of whatsapp). I will have a server which i intend to use to store their sent messages and photos. Whats's the best way to separate the components? And also, should the logic that deals with sending data to my server and reading from it know anything about the facebook connect componenet?
Does anyone has any ideas on whats the best architecture for such an app?

Compartmentalizing data access is a widely accepted practice and in your case, data access is:
Connecting to FB
Connecting to your database server
Ideally your domain logic shouldn't know where it is getting data from (web service, database, FB, G+, etc). All it should know is that it is getting data, and what it should do with that data.
Some common patterns that address abstracting your data access layer from your domain layer are:
Repository
DataMapper
The above links are to Martin Fowler's blog, but some searching around google or stackoverflow should yield additional clarity:
Data Access Layer Design Patters
Microsoft Article, but relevant to any modern OOP language (even mentions ruby).

Related

Get images data and user data from facebook [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I am working on a final year research project which is Intelligent Travel Recommending System. In this work I want use social media data to analyse what type people prefer what type places to travel.So I have to collect travel images posted by users in public and that user's data(age,nationlity,gender etc).I supposed analyse those images and categorize(natural,historical,hiking) them. Then I can recommend a place to a perticular user by using those categorized data and user data.So my problem is can I get those data from facebook now in 2020?
I've read some articles in internet and they've used graph API to acess data as a developer but the problem is fb no longer give acess to others data. If that's the case is there any other way to get public data?I mean can I scrape data from facebook or is there a better way?I am still a university student and I would be grateful if anyone can help me with this isse?
Access to data of people who did not specifically authorize your App is not possible, no matter if public or not. Facebook specifically forbids scraping, so there is no way.
Also, you would not be allowed (or able to) contact specific users without their consent/approval.
I am afraid your idea would only work for people who autorize your App.

Get data of website [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I'd like to get the data of a website. I'd like to display the table in an app. Do you have an idea how I could do it? Thanks for your answers!
Usually, you'd want the maintainer of the data you need to supply some API for machine-to-machine communication (a REST JSON web service, for example).
Since you are asking how to display the table in an app:
the easiest way would be to just point an UIWebView that way and go from there.
a more native look might be acomplished by parsing the data. As you included several 'parsing' tags, I guess this is what you'd prefer.
The problem with HTML scraping web pages (what you probably hope to do) is that the data you are looking for and foremost it's structure is prune to changes. If some unexpected changes can easily break your parser.
Thus, if you go for doing that (which might be prohibited by your school or other publisher, especially in germany), try to parse the data on your server and offer an web service for your app yourself. This way, you can react to changes of the structure faster and do not break the app for your users.
Seriously consider asking the school for an API.

Best practices and tutorials for ios authentication [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
What are the best practices for creating a user authentication system for an ios application? Any good tutorials or insights on the process are helpful (newbie).
Stormpath is an authentication and user management backend service aimed at developers. You manage your own collection of users, verify their logins, and assign users to groups (roles). Your app makes calls to their server.
Parse provides a Parse Social service that lets your app do user authentication through Facebook or Twitter. Parse is being acquired by Facebook (as of 2013-04), so I don't know what that means for their future.
Okta is another.
Mozilla Persona is quite promising, but may not yet be ready for the real world. There is an open-source kit for iOS named persona-ios. Read a discussion on How to use Persona in a native iOS app?.
User authentication and identity as as service seems to be a new but burgeoning field.
If you are using a third party backend the stackmob, parse etc all handle authentication. If you are rolling your own then this project looks a reasonable way to go: http://quickblox.com/developers/SimpleSample-users-ios.

Storage type used in app like Instagram [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I want to make an app like Instagram but the problem is where to store all text and images data, I have used Instagram when there is no connectivity available then app will show the last feeds even when app is freshly openend (not from background). It uses core data or sqlite.
I came across a scaling presentation from instagram a little while back where they talk how they started, using what and then how they approached the challenges.
See the link: http://www.scribd.com/doc/89025069/Mike-Krieger-Instagram-at-the-Airbnb-tech-talk-on-Scaling-Instagram
Hope this helps.
It's not known what Instagram uses. Use whatever you feel most comfortable with. Anything is possible with any storage technology, although some might fit better than others. Also, regarding your question on "core data or sqlite", you can use Core Data with an SQLite database as a backend (way easier than accessing raw SQL). You can also use other backends with Core Data: binary and XML.

Is Facebook capable to read through MS Access database before input? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
How can I set up a business facebook page that when a user enters an email it will run through the company's database and ensure they are not already there before inputting the information into the database. I would like it to display a message to the user like, "Thanks you are already registered with us". I also need it to allow the user to still have access to the page. Sorry if this seems basic, but I have spent quite a while researching this and I believe it would be putting additional code in the authentication part, but I haven't been able to figure it out. Thanks!
Jennifer
Yes - you are correct - the functionality you are looking for would require additional authentication code in the form of server-side scripts. Only in that way would you be able to authenticate your users by cross referencing username/password or email values in your company's database.
If you yourself are a programmer then I would recommend looking into PHP for the server-side scripting and a mysql database (if the database does not already exist in another form - cringe).
Both PHP and mysql are free to use and there is a large knowledge base on the internet.
Here are some links to get you started.
Don't be afraid to jump in - the water is lovely :P
Basic PHP Tutorial from Zend
Basic Mysql Tutorial from Tizag
Good luck and happy coding!