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

Posting Custom Open Graph Object #29

Closed
emschwartz opened this issue Jul 22, 2013 · 1 comment
Closed

Posting Custom Open Graph Object #29

emschwartz opened this issue Jul 22, 2013 · 1 comment

Comments

@emschwartz
Copy link

I am having trouble figuring out how to use fbgraph to post a custom Open Graph object, or figuring out if it is actually possible using fbgraph.

The example code that FB gives me for creating an object is:

FB.api(
  'me/objects/[app]:[obj_type]',
  'post',
  {
    app_id: [app_id],
    type: "[app]:[obj_type]",
    url: "[sample_url]",
    title: "[sample_title]",
    image: "[link_to_img]",
    description: ""
  },
  function(response) {
    // handle the response
  }
);

and to post the action it gives me:

FB.api(
  'me/app:create',
  'post',
  {
    [obj_type]: "[sample_url]"
  },
  function(response) {
    // handle the response
  }
);

Is this possible to recreate with fbgraph? If so, would it be possible to include instructions and examples for how to do this in the Readme?

Thank you very much!

  • Evan
@criso
Copy link
Owner

criso commented Jul 24, 2013

Posts are passed directly to facebook. No reason why it shouldn't be possible.

@criso criso closed this as completed Jul 24, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants