Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provided permission is not valid. #97

Closed
topray opened this issue Apr 23, 2020 · 4 comments · May be fixed by #202
Closed

Provided permission is not valid. #97

topray opened this issue Apr 23, 2020 · 4 comments · May be fixed by #202
Labels

Comments

@topray
Copy link

topray commented Apr 23, 2020

Here is an example code provided by Facebook:
https://developers.facebook.com/docs/business-sdk/common-scenarios/onboard-at-scale/common-scenarios/

raw_child_business_token = business_1.access_token.create({
  app_id: <APP_ID_FOR_ONBOARDING>,
  scope: 'manage_pages,ads_management,business_management',
})

However, in reality, I received the following response.

FacebookAds::ClientError (Provided permission is not valid. Check you spelling and syntax.: Permission not valid (fbtrace_id: AITW7dqgPHCKKjvhH4hmpng))

I think you need to modify the code below. Please check.

api.has_param :scope, { list: 'Permission' }

Thank you for your supporting.

@stale
Copy link

stale bot commented Jul 25, 2020

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Stale label Jul 25, 2020
@stale
Copy link

stale bot commented Aug 1, 2020

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.

@stale stale bot closed this as completed Aug 1, 2020
@daedric
Copy link

daedric commented Jul 5, 2021

This is still buggy.
From what I saw, the serializer is not valid it sends a string such as "p1,p2,p3" instead of p1,p2,p3 because for some reasons it serializes to json the string.
It is worth mentionning that if I try to send an actual Permission list, the json serialization is giving something worse:
[{"permission":"p1"},{"permission":"p2"},{"permission":"p3"}]

afn added a commit to cygnuseducation/facebook-ruby-business-sdk that referenced this issue Sep 25, 2023
The scope parameter needs to be a string containing a comma-separated
list of scopes, e.g. "ads_management,manage_pages".

Fixes facebook#97.
@afn
Copy link

afn commented Sep 25, 2023

This bug is still present. Submitted PR #202 to fix it.

afn added a commit to cygnuseducation/facebook-ruby-business-sdk that referenced this issue Nov 1, 2023
The scope parameter needs to be a string containing a comma-separated
list of scopes, e.g. "ads_management,manage_pages".

Fixes facebook#97.
afn added a commit to cygnuseducation/facebook-ruby-business-sdk that referenced this issue Nov 3, 2023
The scope parameter needs to be a string containing a comma-separated
list of scopes, e.g. "ads_management,manage_pages".

Fixes facebook#97.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants