Documente Academic
Documente Profesional
Documente Cultură
phonegap-build/FacebookConnect at 962eb0a1c07935ff813e28aa9eaa5581f2e10416
This repository
Explore
Gist
Blog
Help
felipejorgeas
phonegap-build / FacebookConnect
Watch
Star
32
98
Fork
886
232 commits
1 branch
tree: 962eb0a1c0
12 releases
20 contributors
FacebookConnect /
Code
Issues
Pull Requests
example
9 months ago
src
9 months ago
test
fixing repo
www
2 years ago
a year ago
.gitignore
LICENSE
0.3.2
README.md
README fixes
9 months ago
plugin.xml
9 months ago
3 years ago
a year ago
47
Pulse
Graphs
HTTPS clone URL
https://github.com/phone
gap-build/Facebo
Clone in Desktop
Download ZIP
README.md
Project Structure
|_example
https://github.com/phonegap-build/FacebookConnect/tree/962eb0a1c07935ff813e28aa9eaa5581f2e10416
1/5
26/7/2014
phonegap-build/FacebookConnect at 962eb0a1c07935ff813e28aa9eaa5581f2e10416
| |_Simple
| | |_index.html
| |_HackBook
|
|_index.html
|
|_README
|
|_hackbook.manifest
|
|_img
|
|_css
|
|_js
|_test
| |_pg-plugin-fb-connect-tests.js
|_src
| |_android
| | |_ConnectPlugin.java
| | |_facebook
| |_ios
| |_FacebookConnectPlugin.m
| |_FacebookConnectPlugin.h
| |_facebook
|_www
| |_cdv-plugin-fb-connect.js
| |_facebook-js-sdk.js
www/facebook-js-sdk.js
is the modified facebook-js-sdk. It already includes the hooks to work with this plugin.
www/cdv-plugin-fb-connect.js
src/android
and
src/ios
is the JavaScript code for the plugin, this defines the JS API.
contain the native code for the plugin for both Android and iOS platforms. They also
include versions of the Android and iOS Facebook SDKs. These are used during automatic installation. During
manual installation, you are encouraged to download the most recent versions of the Facebook SDKs for you
projects.
res/xml/config.xml
file as a
res/xml/config.xml
https://github.com/phonegap-build/FacebookConnect/tree/962eb0a1c07935ff813e28aa9eaa5581f2e10416
2/5
26/7/2014
phonegap-build/FacebookConnect at 962eb0a1c07935ff813e28aa9eaa5581f2e10416
Install the Facebook SDK for Android and the Facebook APK
Import the Facebook SDK into Eclipse
Link the Facebook SDK library to your project. View the properties for the project, and navigate to the
'Android' tab. In the lower part of the dialog, click 'Add' and choose the 'FacebookSDK' project from the
workspace.
Add a new
com.facebook.LoginActivity
AndroidManifest.xml
<activity android:name="com.facebook.LoginActivity"
android:label="@string/app_name" />
src/android/
src/org/apache/cordova/facebook/ .
and
example/HackBook/
www/cdv-plugin-fb-connect.js , www/facebook-js-
assets/www
index.html file.
4. Replace your appId in the new index.html file. Leave the quotes.
Now you are ready to create your application! Check out the
example
like.
You can run the application from either the command line (
or from Eclipse.
com.facebook.sdk error 2
due to a flow change in the 3.8 SDK. More info about this can be found in the official docs. Also, make sure you
have configured the app's Bundle ID in the Facebook app details, under the "Native iOS App" configuration,
otherwise you'll get another
com.facebook.sdk error 2
failed, the device may turn the app to off in Settings > Facebook > Allow These Apps to Use Your Account, so,
make sure your app is allowed.
(To be updated) View the Video
config.xml
file in the project navigator and add a new entry as a child to the widget tag:
<feature name="org.apache.cordova.facebook.Connect">
<param name="ios-package" value="FacebookConnectPlugin" />
</feature>
https://github.com/phonegap-build/FacebookConnect/tree/962eb0a1c07935ff813e28aa9eaa5581f2e10416
3/5
26/7/2014
phonegap-build/FacebookConnect at 962eb0a1c07935ff813e28aa9eaa5581f2e10416
1. From the Cordova Facebook Plugin folder copy the contents of the www folder into the www directory in
Xcode.
Automatic Installation
This plugin is based on plugman. To install it to your app, simply execute plugman as follows; It does not
currently work with plugman at all. WORK IN PROGRESS
plugman install --platform [PLATFORM] --project [TARGET-PATH] --plugin [PLUGIN-PATH] --variable APP_ID="[APP_ID]" --variable APP_NAME="[APP_NAME]
https://github.com/phonegap-build/FacebookConnect/tree/962eb0a1c07935ff813e28aa9eaa5581f2e10416
4/5
26/7/2014
phonegap-build/FacebookConnect at 962eb0a1c07935ff813e28aa9eaa5581f2e10416
where
[PLATFORM] = ios or android
[TARGET-PATH] = path to folder containing your phonegap project
[PLUGIN-PATH] = path to folder containing this plugin
[APP_ID] = Your APP_ID as registered on Facebook
Terms
Privacy
Security
Contact
https://github.com/phonegap-build/FacebookConnect/tree/962eb0a1c07935ff813e28aa9eaa5581f2e10416
Status
API
Training
Shop
Blog
About
5/5