Reputation: 1771
I am trying to get the value of a facebook page using graph api.
The user will insert the link of the page into the input page, suppose
page_name = "https://www.facebook.com/FacebookDevelopers"
@graph_api.get_object(page_name)
but I got an error like
{"error"=>{"message"=>"Unknown path components: /www.facebook.com/FacebookDevelopers", "type"=>"OAuthException", "code"=>2500, "fbtrace_id"=>"GxQDg9JYZoU"}}
Upvotes: 1
Views: 720
Reputation: 8730
In Koala I get posts of page like this
@graph = Koala::Facebook::API.new("secret_token");
statuses = @graph.get_connections(page_name, "feed", {"limit" => "25"});
E.g page_name = "humansofnewyork"
Upvotes: 1