cordova - PhoneGap 3.3 using Phonegap Facebook Connect plugin, getLoginStatus always returns unknown -
I am trying to implement the PhoneGap Facebook Connect plugin through phonegap build and FBGetLuginStats always "unknown", although I 'am logged in to Facebook and have access to my app. Here is my code:
JAVASCRIPT code: CONFIG.XML: Why is the position of Facebook ath unknown but any thoughts? Thank you. You should go through the "Facebook Requirements and Set-Up" Reference Links:
document.addEventListener ("Divisoried", OnDiveWeb Read, Incorrect); Function OnDevice Read () {FB.init ({appId: 'xxxxx', Status: true, // check login status cookie: true, // enable cookies to allow sessions to access xfbml session: false, // parse XFBML oauth: True, // Enable OAuth 2.0 useCachedDialogs: false, native interface: cdv.fb}); FB.getLoginStatus {alert ('FB.getLoginStatus'); if (response.status === 'Connect') {Warning ('DUDE: Connect to Facebook');} And if (response.status = == 'not_authorized') {Warning ('DUDE: Not authorized for Facebook');} Other {Alerts ('DUDE: Not logged in Facebook:' + response.status);}}, true); }
& lt; Difference: Plugin name = "com.phonegap.plugins.facebookconnect" & gt; & Lt; Param name = "APP_ID" value = "XXXXXXX" /> & Lt; Param name = "APP_NAME" value = "APP NAME" /> & Lt; / Interval: plugins & gt;
In Android:
If you plan to roll it out on Android, please note that you need to need to generate hash of your Android keys and submit In addition to those developer pages, to work on Facebook , if you create this hash on Windows (especially 64 bit version) If so, please use the OpenSSL version 0.9.8 E or 0.9.8 D for Windows and 0.9.8k no. To indicate this big up from fernendomatos!
Step Details:
1. Generate a Hash Key 2. Insert your hash key on the Facebook app Settings panel (Settings) (Add android platform and insert main margins)
3. Account & gt; Edit settings & gt; Again, click the 'Add a key ...' tab in the ADO PhoneGap build on the tab, upload your mainstream file to create an Android bullying key. 4. Choose your Android key to create an app in PhoneGap build.
Comments
Post a Comment