Posts under category Facebook Graph API

This is my first time trying to do react-native bridge. Problem is it always says it couldnt find the dependency, irrespective of my integration, I should be able to download the dependency right? I am trying to bridge: https://developer.imepay.com.np/#/andriod-sdk

I am not being able to implement the dependecy:

implementation 'com.swifttechnology.imepaysdk:payment-service:4.0.1

In my main/java/imepayintegration: ImepayModule.java:

package com.reactnativeimepay; import androidx.annotation.NonNull; import com.facebook.react.bridge.ReactApplicationContext; import com.facebook.react.bridge.ReactContextBaseJavaModule; import com.facebook.react.bridge.ReactMethod; import com.facebook.react.bridge.Promise; import com.facebook.react.bridge.NativeModule; import com.facebook.react.bridge.ReactApplicationContext; import com.facebook.react.bridge.ReactContext; import com.facebook.react.bridge.ReactContextBaseJavaModule; import com.facebook.react.bridge.ReactMethod; import java.util.Map; import java.util.HashMap; import com.swifttechnology.imepaysdk.IMEPayment; import com.swifttechnology.imepaysdk.IMEPaymentCallback; import com.swifttechnology.imepaysdk.ENVIRONMENT; public class ImepayModule extends ReactContextBaseJavaModule {     private final ReactApplicationContext reactContext;     public ImepayModule(ReactApplicationContext reactContext) {         super(reactContext);         this.reactContext = reactContext;     }     @Override     public String getName() {         return "ImepayModule";     }     @ReactMethod     public void performPayment(String merchantCode, String merchantName, String module,                                String username, String password, String referenceValue,                                String amount, String merchantTransactionRecordingUrl,                                Promise promise) {         IMEPayment imePayment = new IMEPayment(reactContext, ENVIRONMENT.TEST);         imePayment.performPayment(merchantCode,                 merchantName,                 merchantTransactionRecordingUrl,                 amount,                 referenceValue,                 module,                 username,                 password,                 new IMEPaymentCallback() {                     @Override                     public void onSuccess(int responseCode, String responseDescription,                                           String transactionId, String msisdn,                                           String amount, String refId) {                         promise.resolve("Payment successful");                     }                     @Override                     public void onError(int responseCode, String responseDescription) {                         promise.reject("ERROR", responseDescription);                     }                 });     } } 

ImepayPackage.java:

package com.reactnativeimepay; import java.util.Arrays; import java.util.Collections; import java.util.List; import com.facebook.react.ReactPackage; import com.facebook.react.bridge.NativeModule; import com.facebook.react.bridge.ReactApplicationContext; import com.facebook.react.uimanager.ViewManager; public class ImepayPackage implements ReactPackage {     @Override     public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {         return Arrays.<NativeModule>asList(new ImepayModule(reactContext));     }     @Override     public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {         return Collections.emptyList();     } } 

Hi,
The /me/accounts endpoint is returning an empty arrray, although I've authorized access to several pages and instagram accounts. This was working until about an hour ago but suddenly started failing.
I'm requesting the following scopes:
"read_insights",
"pages_show_list",
"business_management",
"pages_messaging",
"instagram_basic",
"instagram_manage_comments",
"instagram_manage_messages",
"pages_read_engagement",
"pages_manage_metadata",
"pages_read_user_content",
"public_profile"
And the debug_token endpoint returns the expected accounts. But /me/accounts returns this:
{
"data": []
}
What gives?

I'm building a solution that'll require me to authenticate Facebook business accounts and get access to their pages and Instagram handles. And my platform will be used to posts and schedule. Just like Ayrshare. How can I get scopes for :-

instagram_business_content_publish pages_manage_posts pages_show_list publish_video

I tried react @greatsumini/react-facebook-login but its not allowing me to add more scopes

<FacebookLogin       appId={process.env.NEXT_PUBLIC_FACEBOOK_ID as string}       onSuccess={FacebookLoginOnSuccess}       onFail={(error) => {         console.log("Login Failed!", error);       }}       onProfileSuccess={FacebookOnProfileSuccess}       style={{         backgroundColor: "#4267b2",         color: "#fff",         fontSize: "16px",         padding: "12px 24px",         border: "none",         borderRadius: "4px",       }}       scope="email,public_profile"     /> 

I am unable to get the Facebook Send Dialog as a URL to work. No matter what I try out I get the following error, so I assume I am using the Facebook Send Dialog wrong.

An error occurred. Please try later API Error Code: 1 API Error Description: An unknown error occurred Error Message: kError 1545116: Thread disabled: This thread is disabled 

The documentation says the following:

http://www.facebook.com/dialog/send?   app_id=123456789   &amp;link=http://www.nytimes.com/interactive/2015/04/15/travel/europe-favorite-streets.html   &amp;redirect_uri=https://www.example.com/ 

Can anyone give me a working example of such as a link, or even know what the error means? I have tried many variations of different links. Could there be some settings in the Facebook app that needs to be changed?

I have also tried Send Dialog with the js FB SDK getting the same error there.

We are trying to get an list of Instagram accounts associated to a Facebook business account. The endpoint we are trying to call is: https://graph.facebook.com/v20.0/<business_id>/owned_instagram_accounts?access_token=<access_token>

When using an account which has a developer role in the app the call returns a 200 as expected. But when we use an external account we get the following error:

"error": {     "message": "Unsupported get request. Object with ID '951060758639721' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https:\/\/developers.facebook.com\/docs\/graph-api",     "type": "GraphMethodException",     "code": 100,     "error_subcode": 33,     "fbtrace_id": "APTgzDN8PxkeXGu_IZ7HS3q" } 

These are the permissions we have granted and which we all have advanced access from facebook: email, catalog_management, pages_show_list, ads_management, business_management, instagram_basic, pages_read_engagement, public_profile.

Our app is also in live mode.

Does anyone know what we are doing wrong or what we are missing?

We tried everything we know of, tried multiple methods. have requested access to multiple permissions but nothing seems te be working