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

FacebookAds::ServerSide (NameError) Did you mean? FacebookAds::ServerError #148

Open
elmo opened this issue Jul 22, 2021 · 5 comments
Open
Labels

Comments

@elmo
Copy link

elmo commented Jul 22, 2021

Which SDK version are you using?

facebook-ruby-business-sdk

What's the issue?

Example code doesn't excute.

Steps/Sample code to reproduce the issue

user_data = FacebookAds::ServerSide::UserData.new(email: '[email protected]')

Observed Results:

Exception thrown:

FacebookAds::ServerSide (NameError) Did you mean? FacebookAds::ServerError

Expected Results:

No error to be thrown. The call to work was presented in the documenation

Versions:

facebook_ads (0.7.0)
facebookbusiness (0.3.3.3)
Api version:
FacebookAds.configure do |config|
config.access_token = access_token
config.api_version = "v11.0"
end

@luhova
Copy link

luhova commented Jul 28, 2021

I get the same error. I installed the gem and when trying to test it in the Rails console, I get:

irb(main):034:0> FacebookAds::ServerSide
NameError: uninitialized constant FacebookAds::ServerSide

@luhova
Copy link

luhova commented Jul 29, 2021

Update: I saw the 0.3.3.3 version has been installed. After upgrading to 0.8.0.0, the issue was resolved.

@elmo
Copy link
Author

elmo commented Jul 30, 2021

Thanks, yes, that was the issue.

@olleolleolle
Copy link
Contributor

olleolleolle commented Sep 2, 2021

See #153 - The current release of Countries gem blocks users of that from installing a current facebookbusiness.

A workaround is to use the code offered in #153, so in your Gemfile:

# Can use released gem when this is merged and released https://github.com/facebook/facebook-ruby-business-sdk/pull/153
gem "facebookbusiness", github: "herimedia/facebook-ruby-business-sdk",
    branch: "niels/relax-countries-version-constraint"

@stale
Copy link

stale bot commented Jan 8, 2022

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 Jan 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants