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 8587819
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T22:39:42+00:00 2026-06-11T22:39:42+00:00

I am using PhoneGap 2.0 for iOS and trying to get FB JS SDK

  • 0

I am using PhoneGap 2.0 for iOS and trying to get FB JS SDK working. I’m loading the SDK asyncronously using the follow params:

        window.fbAsyncInit = function() {
            FB.init({
                appId : 'xxxx', // App ID
                status : true, // check login status
                cookie : true, // enable cookies to allow the server to access the session
                xfbml : true  // parse XFBML
            });   
        ....

I have a Facebook app tied to “localhost”. When I test the page using the XCode simulator or when opening up my index.html page in a browser (Firefox, Chrome, etc) from my filesystem, I get:

“An error occurred with [APPNAME]. Please try again later.”

If I hit the same file through a local apache instance (localhost:8080/index.html) it works just fine.

I noticed that the URL of the FB popup passes along your domain in the querystring. On localhost:8080, it passes “domain=localhost”. But in Xcode and from the filesystem it passes “domain=” and gives the above error each time.

Is there a correct way to either configure the FB app to work in a “domain-less” context, or would you setup the FB.init in a different manner?

  • 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-06-11T22:39:43+00:00Added an answer on June 11, 2026 at 10:39 pm

    Take a look at the Facebook Connect Plugin:
    https://github.com/davejohnson/phonegap-plugin-facebook-connect
    (Check the branch, cordova-2.0-facebook-ios-3.0, if using with the Facebook SDK 3.0 for iOS)

    See if that is what you’re looking for. The plugin needs to be updated for the just released Facebook SDK 3.1, but should nonetheless be functional. Only issue is if you’re running on iOS6 it will not auth against the native iOS6 credentials without a few changes. It will auth by fast app-switching to FB iOS app or FB web app.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing an iOS app. Its working properly on simulator. I'm using phonegap and
I am using PhoneGap for an iOS project and everything is working except I
I'm trying to work with files on IOS, using Phonegap[cordova 1.7.0]. I read how
I'm trying to use html5's web-database using phonegap for an iOS app for the
I'm trying to get setup to do mobile development using phonegap so i can
I am trying to write an iOS app using Phonegap to communicate with my
I am trying to load the HelloWorld Example in Phonegap 1.9.0 using iOS and
I am new to phonegap. I am using phonegap with IOS. the problem i
Can I use Sqlite with IOS using phonegap (with no limitations) ? If you
I am developing an application using phonegap for both ios and android. My application

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.