Comments (3)
Did you see it #6 ?
from openfb.
No, thanks!
from openfb.
hi @icaro56 , @fernandojunior
I was able to convert this plugin into a require JS module
I am using backbone JS with requireJS.
I bootstrapped my app when I received deviceReady event and inside this event handler i assigned runningInCordova variable to the window object.
for example:
require(["baseLib"], function(argument) {
document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() {
window.runningInCordova = true;
//rest of the app Initialization code goes here
}
});
Once this is done, you may go ahead and directly use this requireJS module from this fiddle.
https://jsfiddle.net/jatin_maini/fb8n2wqt/
hope that helps
- Jatin
from openfb.
Related Issues (20)
- window.open works in Emulator, doesn't work on iPhone
- Not able to get User UUID on login to facebook
- redirect_uri in not correct in cordova HOT 4
- minified and non-minified versions are not the same HOT 1
- when click on login button in facebook
- Lost token after login HOT 1
- The redirect_uri is not supported
- Logout Issues
- The redirect_uri URL is not supported! HOT 4
- Please I need more detailed documentation for how to integrate with phonegap project, no framewroks used
- Error: Permission denied to access property "openFB
- How to make openFB use native app for login instead of in-app-browser (ionic) HOT 4
- Fetching email address
- Login infinity loop on iOs
- is possible to login automatically using Facebook App Native? HOT 1
- window size
- Cordova (cocoonjs) working on Android but not iOS
- Can't able to fetch friends email id
- Facebook Policy Warning for App
- PWA compatibility
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openfb.