Comments (6)
Hi @FrEaKmAn
The credentials can be set using hello.utils.store(network, object)
e.g.
hello.utils.store("facebook", {
access_token:"A1B2C3D4E5F6G7",
expires:1381355029
});
let me know how it goes...
from hello.js.
Yes, I think it works. I hope so. I'm using this code
hello.utils.store("facebook", {
access_token: app.social.facebook.token,
expires: app.social.facebook.expires
});
hello.api('facebook:/me/share', 'post', { 'message': badge.share_message, 'picture': badge.share_badge }, function(r)
{
alert(r);
(!r || r.error) ? error() : success();
});
and it posts to facebook. Only problem is that callback is not called. Any ideas how to debug it?
from hello.js.
Hi @FrEaKmAn i can't recreate this bug. Can you provide some more info, starting with the network request/response for this. Thanks
from hello.js.
Hi @MrSwitch. Well I'm using this with Phonegap project (testing on Windows PHone 8). It think problem could be with the way you are checking if request has completed. If you check the line 1747 the event r.onload is not firing. I have added below
r.onreadystatechange = function()
{
if (r.readyState == 4)
{
r.onload();
}
};
to work. I'm sure it could be improved, but for now it works.
from hello.js.
Oh cool, i haven't tried it on PhoneGap yet. You probably know better than i. Just a thought though, have you added "https://graph.facebook.com" to the whitelist (as described here http://docs.phonegap.com/en/1.9.0/guide_whitelist_index.md.html) ?
from hello.js.
The issue no longer fits the title. @FrEaKmAn Please open an issue to support PhoneGap.
from hello.js.
Related Issues (20)
- The hello('google').api('me') doesn't work HOT 1
- [feature] classic form of errors
- Overwrite state query parameter
- Multiple Potential XSS Vulnerability HOT 1
- Amazon - Dealing with the Implicit Grant Depreciated Issue / implementing Authorization code grant HOT 1
- Prototype Pollution in hello.js
- I cant get birdthday or address in google HOT 1
- is hellojs not has typescript version ?
- Facebook API aren't working HOT 2
- Auth Server is down HOT 1
- VK CANT LOGIN ANY MORE HOT 2
- Is the Google integration using the Google Identity Service
- Facebook Auth Login Error
- [Question] Redirect issue on Iphone 12 pro max
- hello('twitter').getAuthResponse() Sending Response as null
- Must specify access token via Authorization header. https://developer.github.com/changes/2020-02-10-deprecating-auth-through-query-param
- Error: Cannot create system vault due to missing client CTX
- How can I customize hellojs to use with other oidc sources (eg. authentik)?
- https://auth-server.herokuapp.com/#signin login twitter failed. try some errors!
- https://auth-server.herokuapp.com/ cant not use and show 404 -Something changed?
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 hello.js.