Skip to content

photos_create Requires upload file #129

Open
@nishant-n

Description

Hello Folks,
I'm using below code to post fb's staus as a image:
@page ||= Mogli::Page.new(:id => facebook_page_id, :Client => Mogli::Client.new(facebook_page_token))

@page.photos_create(Mogli::Photo.new({:source => File.open('public/images/banner_large.png'),:name=>"Helllo this is text message"}))

And getting error of Requires upload file, also I want to use url of image, can I do this by same gem.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions