Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1109257
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T02:12:17+00:00 2026-05-17T02:12:17+00:00

I am making an app that needs to be able to share stories to

  • 0

I am making an app that needs to be able to share stories to Facebook, using a password and email-address that was set somewhere programmatically (not using Facebook-Connect, mostly because I want my own design, whether you log in to Twitter or Facebook from the app).

I have done this with Twitter and XAuth already, and that works brilliant. Is there any way I can achieve the same with Facebook, or just regular OAuth? (Or does Facebook support XAuth, that would make it a lot easier?)
Is there any other way I can achieve what I want?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T02:12:18+00:00Added an answer on May 17, 2026 at 2:12 am

    The theory is that your app should never see the user’s password.

    In practice, since the code all runs in your app, it’s trivial to get the user’s password (and it’s about as trivial to present a similar UI to grab the user’s password).

    Since you have full source code, it should be easy enough to just call the function that does logging-in with the username and password. I don’t recommend this:

    • Facebook probably won’t like it, and might revoke your app’s API key.
    • You shouldn’t be storing usernames/passwords unless you absolutely have to, especially in NSUserDefaults (which Settings.app uses) since it’s completely unencrypted.
    • Setting.app doesn’t support password fields.
    • The user should not have to exit your app, go to Settings, add login details, and switch back to your app. It’s a bit better with “multitasking”, but not that much better.

    What’s wrong with using the normal Facebook login screen?

    EDIT: More details…

    • AFAIK, you cannot reliably encrypt NSUserDefaults as saved by Settings.app. You do not get to decide which file this is written to (Library/Preferences/com.example.myapp.plist, I think). In iOS 4, you can set NSFileProtectionKey=NSFileProtectionComplete, but that has a bunch of problems:
      • You set this inside your app. The user can go to Settings.app before running your app.
      • While it’s supposedly possible to include Library/Preferences/com.example.myapp.plist in your app zip/ipa, I don’t think it’s possible to include the NSFileProtectionKey attribute.
      • NSUserDefaults updates the plist “atomically” by writing the new plist to a new file and renaming the file over the old one. The new file is unlikely to have NSFileProtectionKey=NSFileProtectionComplete.
      • Ultimately, if you give control of the data over to an API that makes no guarantees about security, it’s insecure (NSUserDefaults seems prone to leaving lots of temporary files lying around…). Apple’s provided the keychain specifically to store passwords (there’s even some decent example code!); use it.
    • Apple does not recommend using Settings.bundle and also your own settings screen — you’re supposed to pick one or the other.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm making a django app that needs to be able to make emails and
I'm making an App that needs to be able to draw new graphics on
I am making an app that needs to be released by the client. Am
I'm making a web app that needs to load and save UTF-8 (Korean, specifically)
I am making a small app that deletes log files. I am using an
I am making app that takes a screenshot of a URL requested by the
So im making an app that creates events by filling in a form then
I am making an app that is supposed to be a remote control for
I am making an app that scrolls information on the desktop. The window is
I am making an app that will play sound on events but I can't

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.