Deezer js SDK getLoginStatus response status values - deezer

I've been playing around with the getLoginStatus method of Deezer js SDK. On the documentation page, it is stated that the possible values for the response status are;
connected
notConnected
not_authorized
unknown
The meaning of these statuses are not documented, so I run a few tests. In my test cases;
If the user is logged into Deezer in the browser and is connected to my app, the returned status is "connected"
If the user is logged into Deezer in the browser but is not connected to my app, the returned status is "not_authorized"
If the user is not logged into Deezer in the browser, the returned status is "unknown"
So, in which case "notConnected" is returned as the status value?

'notconnected' status is the default status, and is only used on logout actually.

Related

Botpress can't connect to messenger

I am making my first bot on botpress. On trying to connect botpress with messenger by inputing app id, app secret and access token through UI, I am getting forllowing errors :
An error has been returned by Facebook API. Status: 400 (Bad Request) (#100) callback_url should represent a valid URL.
Even when manually input these values in botpress-messenger.config.yml same error is shown.
but the fallback url gets validated on messenger developer console.
What am I doing wrong?
Try checking if your domain is existing. Also, remove https

facebook developer test user get relationship status

I'm trying to retrieve the relationship_status of my test user in my facebook app.
The status is set to Single on the webpage, and can be accessed by public.
But the api call:
me?fields=id,name,relationship_status
returns nothing for relationship_status
What am i doing wrong?

Facebook won't display images, when website link is inserted

So,
I have this joomla-based website MAIS +, and every time I share an article on Facebook, either from it (site) or directly on Facebook, an image is not inserted.
I have tried the Facebook debug tool and what I got was this
![Facebook Debug Tool][3]
Problem is, what to do with this information?
I don't get it!! :(
Well in the Facebook debugger, it's returning a 403 error which if you read here;
http://en.wikipedia.org/wiki/HTTP_403
A web server may return a 403 Forbidden HTTP status code in response
to a request from a client for a web page or resource to indicate that
the server refuses to allow the requested action. In other words, the
server can be reached, but the server declined to allow the requested
access.
This may mean that your server could be blocking the Facebook server's from accessing your URL. Check your firewall with your hosting provider to see if any blocking is going on.
If you look at what Facebook see's of your URL;
http://developers.facebook.com/tools/debug/og/echo?q=http%3A%2F%2Fwww.mais.co.mz%2F
It states;
Document returned no data
Here's a solution - Facebook debug returns 403 Forbidden

Facebook iOS SDK: login for blocked app gives error - "The Page you requested cannot be displayed right now. It may be temporarily unavailable..."

My app uses Facebook iOS SDK 2.0 for Sign up through Facebook involving publish_stream params as permissions. Now if a FB User authorizes the application for Sign Up it works perfectly fine. I am displaying the login dialog box in app without switching to safari and store accesstoken and other credentials required.
However, following test case gives errorneous result--
TEST Scenario :
STEP 1 : The same user later on Blocks the application from the app activity on wall.
STEP 2 : Now he goes to the iOS App and performs the FConnect i.e. calls the login dialog.
STEP 3: User enters his correct facebook credentials and clicks on 'login'.
Result : The WebView loaded reflects the following error message: "The page you requested cannot be displayed right now. It may be temporarily unavailable, the link you clicked on may be broken or expired, or you may not have permission to view this page." with a Facebook Application logged in.
Can this response from Facebook Server be checked and handled at the client end?

Get logged fb user but NOT authorised the app (outside of canvas page)

Alright, looking at the JS SDK there is this:
auth.statusChange
Typically you will want to use the auth.sessionChange event. But in rare cases, you want to distinguish between these three states:
Connected
Logged into Facebook but not connected with your application
Not logged into Facebook at all.
So I would be using
FB.Event.subscribe('auth.sessionChange', function(response) {
// do something with response
console.log (response)
});
You'd have thought this is exactly what I need, but guess what. Even if I satisfy the condition :
Logged into Facebook but not connected with your application
I'm still getting session = null!
Can anyone please suggest a way of getting the session of a logged in user but hasn't yet approved the app.
Thanks
Can't get session unless the user approved your app.
You can use http://developers.facebook.com/docs/reference/javascript/FB.getLoginStatus to see if user logged in, but not connected.
"The status of the User. One of connected, notConnected or unknown".