[Plugins] We've added FaceBook Connect to Build.

  • 1
  • Announcement
  • Updated 7 years ago
Here is some more information :)

http://build.phonegap.com/blog/adobe-...

If you have any issues with it let us know and we'll be happy to help!

Hardeep Shoker
Photo of Hardeep Shoker

Hardeep Shoker

  • 1941 Posts
  • 89 Reply Likes

Posted 7 years ago

  • 1
Photo of Thiphariel

Thiphariel

  • 12 Posts
  • 1 Reply Like
Hi Hardeep.

You also mention in the blog post that PGB getting 2.3 version. But it seems not.
When can we update our version and enjoy with 2.3 add-ons ? :)

Thanks
Photo of Red2678

Red2678

  • 255 Posts
  • 0 Reply Likes
nice!
Photo of Peter Carabeo-Nieva

Peter Carabeo-Nieva

  • 19 Posts
  • 1 Reply Like
Thiphariel, welcome to the 2.3 waiting club, hehe: http://community.phonegap.com/nitobi/...

Unfortunately, on average, we still have to wait about 1-2 months past final phonegap version release for it to be integrated into the Build cloud service. The only workaround is to download the necessary SDKs and compile your own builds locally.
Photo of mypregnancy2010

mypregnancy2010

  • 35 Posts
  • 0 Reply Likes
ERROR in Your plugin instructions, at point n. 2

the correct filename is : "facebook-js-sdk.js" not "facebook_js_sdk.js"
Photo of ryan

ryan, Developer

  • 1538 Posts
  • 132 Reply Likes
Updated, thanks
Photo of Mark Rummel

Mark Rummel

  • 22 Posts
  • 0 Reply Likes
I changed to "facebook-js-sdk.js" in my index.html file and now the iOS build is failing and giving me an error. I have notified the Phonegap Build team.

"facebook_js_sdk.js" was not working for me. Getting "FB variable does not exist." error in my app. "cordova.js" and "cdv-plugin-fb-connect.js" have seemed to be loading okay though.

Also, "facebook_js_sdk.js" is still listed at https://build.phonegap.com/docs/plugins.
Photo of mypregnancy2010

mypregnancy2010

  • 35 Posts
  • 0 Reply Likes
my index with "facebook-js-sdk.js" work.
Photo of Mark Rummel

Mark Rummel

  • 22 Posts
  • 0 Reply Likes
Turns out the iOS not building was some other problem on the Phonegap Build servers that others were having as well. Once it got sorted out, "facebook-js-sdk.js" started working.

Again, "facebook_js_sdk.js" is still listed at https://build.phonegap.com/docs/plugins.

I also found all the instructions on the GitHub README file to be confusing at first and perhaps unnecessary. It all seemed so easy on the Phonegap Build Plugins page and then all the instructions on this README file almost scared me off. This page seems to be specific to Phonegap Build, which means almost all of these instructions aren't needed since Phonegap Build automatically adds all the necessary files. It seems the instructions on the README file should be more like the instructions on the Phonegap Build Plugins page.
Photo of mypregnancy2010

mypregnancy2010

  • 35 Posts
  • 0 Reply Likes
the facebook "like" button don't work on my code....
anyone use this?
Photo of B.K SURESH

B.K SURESH

  • 5 Posts
  • 0 Reply Likes
hi hardeep,

i am new to phonegap, i have created an app with some html pages.....i am facing header issue...i made header fixed when scrolling,

the issue is when i zoom the page the header should not zoom only the content (text) to be zoomed.....

please try to help me to solve the issue as quickly as possible......

Thanks in advance
Photo of Mark Rummel

Mark Rummel

  • 22 Posts
  • 0 Reply Likes
I'm really liking the the Facebook Connect Plugin for Build!

The code below works for me. However, I only need the Basic Permissions; I don't need the user's email. If I remove , { scope: "email" }, then my login function stops working. Any thoughts on why this might be the case? It is the same when I do this in the example Simple app on GitHub.

function fbLogin () {

FB.login(function(response) {
if (response.authResponse) {
alert('User Login Success!');
} else {
alert('User cancelled login or did not fully authorize.');
}
}, { scope: "email" });
}
Photo of Brett

Brett, OFFICIAL REP

  • 547 Posts
  • 54 Reply Likes
hey,

good catch. added the issue here ...

https://github.com/phonegap-build/Fac...
Photo of Joshua Morony

Joshua Morony

  • 37 Posts
  • 0 Reply Likes
Hi, is it possible to use the new facebook connect plugin without using a Mac / XCode?
Photo of Mark Rummel

Mark Rummel

  • 22 Posts
  • 0 Reply Likes
@Joshua Yes. I have successfully implemented the FacebookConnect Plugin for Phonegap Build on Windows without Xcode.

I recommend just following the instructions on the Phonegap Build Plugins page and ignore the instructions on the GitHub page (which talks about Xcode and other things you don't need for the Build plugin).

For Step 1 (Setting your app up on facebook), select Native iOS App and the Bundle ID is the same as your "id" in your config.xml (i.e. com.company.appname) and you can set the App Store IDs to "0" while testing.

For Step 2, it should be facebook-js-sdk.js. The other is a typo they haven't fixed yet.

A good way to test things out is to paste the content of the example Simple app on GitHub into a new index.html file and upload it with your normal config.xml file to Phonegap Build . I did this for one build on my app and then after I tested it, just uploaded my normal index.html file. The only change you will need to make in the index.html of the Example app is to put your Facebook App ID at the bottom in the FB.init function. I also changed response.session to response.authResponse to match the Facebook JS SDK, but I'm not sure if that is necessary.

Be sure to update your config.xml file with everything mentioned in Step 3. I also added the following code:
<access origin="http://m.facebook.com" />

<access origin="http://graph.facebook.com" />
<access origin="http://api.facebook.com" />
<access origin="http://fbcdn.net" subdomains="true" />
<access origin="http://akamaihd.net" subdomains="true" />


The FacebookConnect plugin is using the Facebook JS SDK, which you can learn more about here: https://developers.facebook.com/docs/....

It took me a little while to figure this stuff out, so hopefully this will help you and maybe other save some time.
Photo of Joshua Morony

Joshua Morony

  • 37 Posts
  • 0 Reply Likes
Thanks a lot for that Mark, great info!
Photo of Jens Peters

Jens Peters

  • 91 Posts
  • 1 Reply Like
Yeah thank you for the config settings, didn't know that before. this maybe solves my iOs issues, where the login does not do anything? Androis works great`...
Photo of Morten Wang

Morten Wang

  • 6 Posts
  • 0 Reply Likes
I cannot get the facebook plugin for build to work for ios. It builds on the build server. But after clicking the login button in the app it opens the fb app (nice) and inside the fb app a popop appears (header updating) , first with a loader and after 2 seconds it writes an "error occured".

Info:I am using example : https://github.com/phonegap-build/Fac...

I really hope you can help. Thanks in advance
Photo of Jens Peters

Jens Peters

  • 91 Posts
  • 1 Reply Like
I am also having trouble on iOs. anroid works fine, but on iOs even the facebook app seams not to be called. Maybe you have a hint, what I am doing wrong:

http://community.phonegap.com/nitobi/...
Photo of Brett

Brett, OFFICIAL REP

  • 547 Posts
  • 54 Reply Likes
for those people having issues with the iOS build please double check that the correct app_id is used in your config.xml and that the iOS section of the app on Facebook has been filled out correctly.

if anyone has further issues please start a new topic and please include the ID of the application on the build service in your post so we can troubleshoot.
Photo of Jens Peters

Jens Peters

  • 91 Posts
  • 1 Reply Like
Both are equal in my app. (192284) but the Android version is working, on iOsthere is nothing happn if the FB.Login is called, see http://community.phonegap.com/nitobi/...
Photo of Paul Ronan

Paul Ronan

  • 6 Posts
  • 0 Reply Likes
ok, sorry Brett, couldn't get this working on android, and I've now reverted to just submitting the example FB app (simple) with a config.xml file and I get the warnings about CDV and FB not loading properly.

I'm certain that I'm missing something REALLY simple but can't seem to find it. any help would be appreciated.

my project id is 312755
Photo of olegchumakovzulman

olegchumakovzulman

  • 1 Post
  • 0 Reply Likes
Bulding via phonegap.build service simple example(https://github.com/phonegap-build/Fac...) from this repo + my config.xml (https://gist.github.com/zulman/5070388)

After tap on login button message informs me about "com.facebook.sdk error 2"

I check all info on github's main page about this error, check stackoverflow entries.

My bundle id is the same on facebook dev page and in config.
My sandbox mode disabled on facebook dev page.
My app ids are equal on js, config and facebook dev page.
How i can get extended error info or way to fix it without using manual building on xcode? Thanks.
Photo of Philipp Schuch

Philipp Schuch

  • 6 Posts
  • 0 Reply Likes
I've got no answer on my topic, so I post it here again. There's a Bug with the Facebook Connect PlugIn and the Hydration of PGB. Can someone get it fixed!?

Read it here:
http://community.phonegap.com/nitobi/...
Photo of Javier Hertfelder

Javier Hertfelder

  • 2 Posts
  • 0 Reply Likes
Same issue!
Photo of stag

stag

  • 5 Posts
  • 0 Reply Likes
Facebook-connect for Phonegap build doesn't work when facebook app is installed (ios)

The app works just fine when facebook app is not installed.
When the app is installed FB.login triggers the app with message (Sorry, this feature isn't available right now: An error occured while processing this request. Please try again later). I followed all steps posted here
http://pjsdev.blogspot.com/2013/03/ph...
Photo of Hamza Siddiq

Hamza Siddiq

  • 24 Posts
  • 0 Reply Likes
I am using phone gap build and am using the Facebook plugin with it. My primary focus is android at the time being. When i run the app on an emulator the error "given url is not allowed by the app configuration..." is displayed .Could you please help.