facebook / facebook-ios-sdk

Used to integrate the Facebook Platform with your iOS & tvOS apps.
https://developers.facebook.com/docs/ios
Other
7.78k stars 3.54k forks source link

its looks like this app isn't available,Facebook login not working for non administrative/testers users, mobile app react native #2454

Open Adnan46 opened 2 months ago

Adnan46 commented 2 months ago

Checklist before submitting a bug report

Xcode version

15

Facebook iOS SDK version

iOS v8.2.0

Dependency Manager

CocoaPods

SDK Framework

Login

Problem

In my app i cant login to nonadministrative/nontesters users in facebook login for business, even I have done all the required steps to use facebook login bussiness for both administrative/testers and nonadministrative/nontesters users.

below are the point what i have done but still it is not working for non-administrative/non-testers users, I am getting "its looks like this app isn't available" ERROR, is there any other thing we need to do?

business verify. Access verify. email and public profile advance access. Use data checkup completed. Configuration added. we are also attaching images for the point which we have done.

ERROR IN APP

email and public_profile advanced access granted

business and access verification completed and data checkup also

Our App is on LIVE mode also

Configuration added

BUT STILL WE CANT LOGIN ON non-administrative/non-testers users, IS THERE ANY THING OTHER TO DO???????

image image image image

fari42 commented 1 month ago

did you find a fix I have same issue ?

Adnan46 commented 1 month ago

@fari42 not now

Adnan46 commented 1 month ago

@jawwad @KylinChang @Zhiyi-Zhang @revolter @jjiang10 @ryantobinmeta please check this issue

fari42 commented 1 month ago

In my side it was access verification missing now it works @Adnan46 pages_read_user_content, pages_manage_posts, pages_show_list, pages_manage_engagement, business_management, read_insights, pages_read_engagement

Adnan46 commented 1 month ago

@fari42 but as you can see my access verification is already done but not working for non tester users, you are using react native fbsdk or react native fbsdk-next?

fari42 commented 1 month ago

I have python backend

Adnan46 commented 1 month ago

@fari42 for frontend ?

fari42 commented 1 month ago

Show me your App review it is ok ? I use html css javascript for front no framework

Adnan46 commented 1 month ago

@fari42 above all screenshot mentioned, i am integrating it in mobile app react native

rajnishp commented 1 month ago

I am also having same issue, In App Type : Facebook Login - It works But in app Type : Others - It doesn't, Same Issue

delgiudices commented 1 month ago

Experiencing the same problem, facebook login works fine on web but on ios it shows the app is not available

DEVELOPBYSHUBH commented 1 month ago

I am facing the same issue for a test role user and admin role in development mode. Can anyone please help me to solve this issue

AdeolaFaraday commented 1 month ago

this has been an issue for us to for a while now, if there is a way we can contact facebook directly to help with this issue. @jawwad @Adnan46

AdeolaFaraday commented 1 month ago

@jawwad found a solution. First you have to load the facebook sdk, kindly note you have to create a configuration of user access token. useEffect(() => { // Load the Facebook SDK script if (!window) return; (function (d, s, id) { const fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; const js = d.createElement(s); js.id = id; js.src = 'https://connect.facebook.net/en_US/sdk.js'; fjs.parentNode.insertBefore(js, fjs); })(document, 'script', 'facebook-jssdk'); // Initialize the Facebook SDK after it has loaded window.fbAsyncInit = () => { window.FB.init({ appId: FACEBOOK_CLIENT_ID, // Replace with your Facebook App ID cookie: true, xfbml: true, version: 'v20.0', config_id: FACEBOOK_CONFIG_ID, // Replace with your config_id }); }; }, []);

. The next step is to call the login method.

window?.FB?.login( (response) => { // response with code }, { config_id: FACEBOOK_CONFIG_ID, response_type: 'code', override_default_response_type: true } );

what you will get after you call this is response object with code then you will call another api with the code you got back to exchange it for access token. https://graph.facebook.com/v20.0/oauth/access_token? client_id=${FACEBOOK_CLIENT_ID} &client_secret=${FACEBOOK_CLIENT_SECRET} &code=${response?.code}

THIS END POINT THEN RETURN THE ACCESS TOKEN.

ecarterdev commented 1 week ago

@delgiudices @rajnishp @AdeolaFaraday @Adnan @fari42 still, i'm facing this problem

AdeolaFaraday commented 1 week ago

Do you have app type of business and is your app is to live mode? @ecarterdev Can you also share how you have done the set up on your end. Thanks.

ecarterdev commented 1 week ago

Do you have app type of business and is your app is to live mode? @ecarterdev Can you also share how you have done the set up on your end. Thanks.

business type and live mode

Screenshot 2024-09-02 at 5 32 01 PM
Vaasu02 commented 1 week ago

hey can anyone help me when i try to login it is saying its looks like this app isn't available I have App type: Business and in development mode

AdeolaFaraday commented 1 week ago

@ecarterdev @Vaasu02 If it's possible can you share your code implementation (snipet).

DEVELOPBYSHUBH commented 4 days ago

Hello @AdeolaFaraday , I am getting the same issues in my flutter project. can you please help me to solve this issues.

ecarterdev commented 4 days ago

@AdeolaFaraday @DEVELOPBYSHUBH @Vaasu02 @alloy I tried with firebase auth but unfortunately, getting same error.

Note: In both platform like Android and IOS.

AdeolaFaraday commented 4 days ago

I was able to solve this issue on the web, from what i have observed, I am not sure it's possible to do login with facebook business with the package on mobile. I am currently working on a solution to use it on mobile. Will let you know when i have something.

DEVELOPBYSHUBH commented 3 days ago

In my Flutter app, it is not working for test users or admin users on iOS, would anyone be able to help me solve this issue? If anyone has a solution, please let me know.

vanqui123 commented 1 day ago

with type business please add permission 'business_management' and 'pages_show_list' Screenshot 2024-09-14 at 13 35 38

AdeolaFaraday commented 1 day ago

Standard or advanced access? @vanqui123 And also are you using config id any where in the set up? Kindly share a screenshot that your set up for this login with business works 🙏

vanqui123 commented 1 day ago

Standard or advanced access? @vanqui123

Standard or advanced access? @vanqui123 And also are you using config id any where in the set up? Kindly share a screenshot that your set up for this login with business works 🙏

hi @AdeolaFaraday. Have you added the permission I mentioned above to the code?