Posts under category Meta & Facebook

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 trying to hide a comment or ban a profile, but when I click, the following message appears "The requested content cannot be provided at this time. It may be temporarily unavailable, the link you clicked may have expired, or you may not be authorized to see this page. However, I checked all the plugin settings and didn't find anything unusual.And I have access to the plugin, all the comments, but I can't hide them when I want.

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.