How to get accounts/pages associated with a user using FbGraph2 gem? - ruby

I am using fb_graph2(1.1.1) in my rails project. My goal is to get all pages/accounts associated with a particular account. I am using this document as a reference. And below is my code line which I wrote to get accounts. For some reason I am getting an error "An unknown error has occurred."
It would be great if someone can guide where and what am I doing wrong. Thanks!
FbGraph2::User.me(<ACCESS_TOKEN>).accounts

Related

Laravel unable to get HTTP_X_SHOPIFY_HMAC_SHA256 header from shopify

I've been following the documentation for the webhook verification to get our app verified and keep getting error saying Undefined index: HTTP_X_SHOPIFY_HMAC_SHA256
Tried getting it using laravel builtin function $request->header('HTTP_X_SHOPIFY_HMAC_SHA256') and also $_SERVER['HTTP_X_SHOPIFY_HMAC_SHA256'] but both are still returning the same error.
Can anyone point me to a solution to this, been stuck with this problem for a week now.
Thanks

API returned error: "Duplicate instance, please try again with different values."

I'm using the Coinbase connector for Ruby, and I'm receiving a Coinbase::Wallet::ValidationError with the description Duplicate instance, please try again with different values. when doing a Coinbase::Wallet::Account::sell operation.
I have been trying to understand which is the error with the API documentation and along the web, but no luck.
Could you give an explanation of which is the error here?

Error getting valid response from API. Check log file for error details

I cant seem to find the error log of authorize.net api.
I have Laravel application which uses "authorizenet/authorizenet" package and the code where I try to create a customer profile, I get following error:
"Error getting valid response from API. Check log file for error details"
Can anyone tell me whereto find these logs? and what it's name?
I tried in /var/logs folder but i cant seem to find it.
if someone else has this issue, here is the solution.
The authorize.net has changed their endpoints from https://api.authorize.net to https://api2.authorize.net which is one of the possible reasons that you might get this error.
So if you are hardcoding these endpoints in your code then update it to the new one or if you are using library constant for it, same as me:
\net\authorize\api\constants\ANetEnvironment::SANDBOX
\net\authorize\api\constants\ANetEnvironment::PRODUCTION
Then simply update your library by running:
composer update authorizenet/authorizenet
This is how I resolved it and it seems to be the best way so far because it will update their library to take everything up to date if they have changes something else and you started experiencing this issue.
I hope it helps

Paypal integration throws an error - Undefined index: log.FileName

I am integrating a paypal in my website. I referred this link -
link
But this gives me an error -
Undefined index: log.FileName
…\vendor\paypal\rest-api-sdk-php\lib\PayPal\Log\PayPalLogger.php66
I don't know why it is not working still it's a same code of above link.
First thing first. As you can see, the sdk is not able to create a log file at the given location. Can you please provide write permissions to make that happen ? That should let your see the right error message

What is the GlobalIdentity and how do I set it in the FileNet web service?

I'm trying to upload a document into filenet via CEWS, but I'm getting this error:
“The unexpected exception is chained to this exception. Message was: com.filenet.apiimpl.core.GlobalIdentity incompatible with com.filenet.apiimpl.core.RepositoryIdentity“
Our Filenet people don't seem to know what that means. They've provided working code that basically looks the same as mine (but which I can't compile directly at the moment because it references parts of their project I don't have.)
So is the GlobalIdentity something I need to pass in through the web service? If so, how? If not, where is it configured?
Ok I finally spotted my mistake.
I had incorrectly set crt.TargetSpecification.classId to the name of the repository I was trying to use rather than to the correct classId.

Resources