spotify api after login no user data? - api

I am learning a video lesson from youtube
and I am failed with deploy, i can login in correctly,but after login ,there is no user data appear. all the files works well in my local enviroment localhost:3000. I don't know why ?
this is localhost:3000 after login .but this is app appear after login(https://spotify-v2-one.vercel.app/)enter image description heremy code soucre url is https://github.com/Jianhongkang/spotify-v2-clone.git. i already checked the code, i am sure my local file's code as same as repo

Related

Facebook is asking me app-ads.txt for login sdk, and it is not working

I have a react native app with admob, my app-ads.txt is present and validated by Google. The app is in PlayStore, everything works fine.
I added Facebook login button for the new version, I created the app on Facebook developer dashboard, but there is a section in general settings that asks me to confirm the ownership by adding a line to my app-ads.txt. If I don't pass this step, I can't put the Facebook app in live mode.
Even if I don't understand why I have to do it since I do not advertise on Facebook with this app, I added each of theses lines, and tested them one by one, and each time Facebook tells me that an error has occured and it can't proceed.
facebook.com,MY_FB_ADVERTISING_PERSONAL_ACCOUNT_ID,DIRECT,c3e20eee3f780d68
facebook.com,MY_FB_ADVERTISING_BUSINESS_ACCOUNT_ID,RESELLER,c3e20eee3f780d68
facebook.com,MY_APP_FB_ID,RESELLER,c3e20eee3f780d68
facebook.com,MY_APP_FB_ID,DIRECT,c3e20eee3f780d68
Just to be sure that FB has the good url, I renamed the app-ads.txt file on my server, FB tells me that no valid file was found. So, there is no problem with the url or the developer website declared on the play store.
The problem is surely in the file content, and I can't be sure which line is good.
Does someone has an idea?
Details: The new version (with fb login button) is not in the playstore yet, there is only the fist one, does it matter?

How to resolve "No credentials available" Issue in google One Tap Login?

I am working in one project in which I need to integrate Google One Tap Login which show All accounts list that were currently logged in into browser.
One Tap Login Iframe is adding successfully in localhost environment but With the use of same PROVIDER_ID, When I deploy my project into server with staging url.
I got Issue with Open Iframe. It is always show error like "noCredentialsAvailable: No credential is available for the current user." But I already have login with two accounts in gmail.
I can't understand this kind of behaviour of Iframe.
Another question of StackOverflow say's that put button of Google for login via google. but I want to resolve this issue.
Is there any missing code from my side ?
Same Prvider ID is used in Localhost and Staging(subdomain) Still Error is occur.

Mobile Safari FB.login Oauth Redirect Error

I have a mobile web application that integrates with the Facebook Graph API.
Basically, it uses the JS SDK to obtain details about the viewing user that it can then use to render user specific content.
I use the FB.login function to have the user login to my Facebook app. This should work as follows:
JS on pages detects that user has not logged in to Facebook app
User is given button to click to fire FB.login
User is redirected to Facebook page to authorise the app and login
User is redirected back to my mobile web application
JS on pages detects that user is logged in to Facebook app, polls user data from Graph and renders it.
This all works fine on Android, but the redirect step does not work on Mobile Safari
The user gets an error referring to an EntityRef, which looks like the Content-type being sent to the browser is XML but where the content includes an illegal character:
Error on line 1 at column 49: EntityRef: expecting ';'
This is the actual link that is generating the error:
https://m.facebook.com/dialog/oauth?display=touch&domain=cgfoodscomp.herokuapp.com&scope=email&e2e=%7B%7D&app_id=135937919902029&locale=en_US&sdk=joey&client_id=135937919902029&redirect_uri=https%3A%2F%2Fs-static.ak.facebook.com%2Fconnect%2Fxd_arbiter.php%3Fversion%3D24%23cb%3Df3cf8ca2ac%26origin%3Dhttps%253A%252F%252Fcgfoodscomp.herokuapp.com%252Ff2d1c54b04%26domain%3Dcgfoodscomp.herokuapp.com%26relation%3Dopener%26frame%3Df35f8ac348&origin=2&response_type=token%2Csigned_request
When you open this in another browser, you get a response with Javascript (I won't post it here as it contains script tags), which contains references to the iPhone:
iPhone.*Version/(5|6)
I'm actually using a Version 4 IOS.
Does anyone know if this stuff is supposed to work in Version 4?
This is a Facebook Bug, which is due for resolution:
https://developers.facebook.com/bugs/339889299473431

iOS Facebook integration,FBConditionalLog

I know this question has been asked many times, I've already done my research both on stackoverflow and on google, but nothing came up that resolves my problem.
I'm trying to integrate Facebook login in my application. I'm using the latest Facebook SDK which can be downloaded here. I'm not only trying to integrate Facebook login, but also other Social network login as well. So far, I'm able to accomplish them.
To integrate Facebook login, I've followed this tutorial. I've done exactly the same. My problem is that when user clicked on Facebook login button. Facebook login page appears in the browser, then asks for permissions. So far, it's working. After completing user credentials then click login button on the browser, I got this log FBConditionalLog: handleOpenURL should not be called once a session has closed, I got no error. Also, in my Facebook account, I've seen that I've permitted the application in the app settings. Normally, I would have got user session found log, if user was able to login successfully.
Do you have any idea, what I'm doing wrong?

Redirect to own site when user logs in via Facebook app

I am building an app with the functionality to publish
messages to users walls while specific actions runs on
my website.
What I have done is (briefly):
Registered my own app on Facebook
Added a login button on my website with permission
to publish:
Log in on Facebook
Downloaded facebook-php-sdk library
It is now I start having problems. I do not know how
to do what I want to do now.
What I want to do:
When a user logs on to facebook via my website. I want
a file on my site to be called, where I can update the
user's data in my own database as well.
Because that is not what the canvas url is meant to do? How it
is no, seems no file at all is called on my site when
I click on Login.
Since you are using the Facebook PHP-SDK you noticed that there are two options for the users to login:
Using the XFBML button, which will:
Open a login dialog (pop-up) asking for permissions..etc
When a successful authentication/authorization is complete the dialog will close, the auth.login event will be triggered and based on that the page will get reloaded window.location.reload();
The PHP in the top of the page will get into business and $session = $facebook->getSession(); will actually retrieve a session! $user = $facebook->getUser(); will retrieve the current user
Using the Login URL generated by the Library $loginUrl = $facebook->getLoginUrl(); this URL will get you through the same flow and if you noticed there's a next redirect_uri parameter which will redirect you back after a successful process to that URL (mainly the same URL you are at), where you can change that parameter if you like.
The canvas URL is the URL Facebook uses when it displays your application from within Facebook. You would use this functionality if you expect users to use your application while in Facebook itself.
When authenticating using Facebook's API (assuming graph API usage here), you provide a redirect_uri as part of the authentication URL. Once Facebook has authorized your application, it will redirect the user's web browser to the URI you specified. This URI can be any link you desire on your site. You should use the link as the determination of when the user is logged in successfully, e.g., https://mywebsite/facebook/loggedin.