facebook / facebook-ruby-business-sdk

Ruby SDK for Meta Marketing API
https://developers.facebook.com/docs/business-sdk
Other
208 stars 161 forks source link

Cannot post to page #94

Closed vierarb closed 4 years ago

vierarb commented 4 years ago

Which SDK version are you using?

0.6.0.1

What's the issue?

I'm unable to create a post in a page. I've followed the official documentation and also the example in this repository.

Steps/Sample code to reproduce the issue

  1. Configure the access:

    FacebookAds.configure do |config|
    config.access_token = <PAGE_ACCESS_TOKEN>
    config.app_secret   = <APP_SECRET>
    end
  2. Try to create a post

    page = FacebookAds::Page.get(<PAGE_ID>)
    post = page.feed.create({ message: 'This is a test message' })
  3. Get the error

    NoMethodError: undefined method `feed' for #<FacebookAds::Page {:id=><PAGE_ID>}>

Observed Results:

An error raised in the console.

Expected Results:

A new post being created in the selected page.

stale[bot] commented 4 years ago

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[bot] commented 4 years ago

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.