Facebook API - Create a business page - ruby-on-rails

It's a highly discussed topic over the globe.
But I haven't found a convincing answer or a solution.
All the SO post finally ended up in a NO or a solution with minimum lead.
How to create a Facebook fan page for a website in an automated way?
Creating Facebook Page programmatically through Open Graph API
open-graph-api
Finally this one - Creating facebook business page is POSSIBLE but how?
Pagemodo does lets you create an actual facebook page(I assume its through Facebook javascript SDK).
According to my knowledge Facebook offers following API/SDK
Graph API
FQL
Open Graph
Javascript SDK
Dialogs
Chat
Internationalization
Ads
Public Feed
Keyword Insights
Out of these first 4 should possibly define the page creation API
Graph API - doesn't have any query to POST pages/create
FQL - can't insert(ignore anyway)
OpenGraph - Can we have a object of type:page
Javascript SDK - Am positive on it, that javascript SDK could help(anyone had luck with it ?)
May I know whether its really possible by any means to create a facebook page ?
Does facebook have any other API that allows to create one ?
Any sort of help appreciated.
Thanks!

Related

Facebook Fan Page - is it possible to share post on Facebook fan page using share dialogue of Facebook-iOS-SDK?

I want to share something on Facebook users page,
Which I have done using Graph API call using: "manage_pages" and "{page-id}/feed" using page access_token as parameter via POST Method
is it possible to share post on Facebook fan page using share dialogue of Facebook-iOS-SDK ?
I have searched a lot but can't see any option which give me useful info for Facebook share dialogue
Any information regrading same task is most welcome...
Thanks in advance :)
Update:
I can see what Facebook App itself is providing like this:
In screenshot last two options are My Page Names:
1) Kiran Patel
2) My Library
So How can we provide this options programmatically?

iOS: Parse framework & Facebook OpenGraph

Has anyone out there integrated Facebook OpenGraph in to your iOS app using the Parse (www.parse.com) framework as your backend?
My goal is simply to post images to Facebook from my iPhone app using OpenGraph. From what I can tell, FB will not host the photos themselves - surprisingly - so I'm on the assumption I need my own backend (or Parse's in this case). (If I'm misunderstanding this, please correct me!)
I've spent most of the last day experimenting with the Facebook framework, and I plan to use Parse for much of my web services in the app, so ideally I would leverage both together and NOT introduce a separate backend/webservice (e.g. Heroku/Rails) just for simple image hosting.
..but either way I fear could get lost down a deep hole trying to implement something that will never work - web tech is not my strong suit.
I actually got this answered at a Parse.com company event here in SF, and since then have also learned A LOT about Facebook integration and posting.
The long story short is: Parse.com cannot serve as the only object in your web stack if you want to post Facebook Open Graph Stories.
In addition to simply hosting an image, Facebook Open Graph Stories require two things:
A public HTML page that Facebook's servers can reach. This page serves Facebook meta data that Facebook uses to determine how to present your image object.
A click-through link to a landing page that contains your image object.
I ended up using a Tumblr blog to host my photos, because you can 'hack' their Themes to include your own HTML headers that support FB OG Stories. It's not perfect, but for a guy without a web stack, it gets the job done!

How to download Facebook page posts

I am an iOS developer and I am writing an app which needs to take statuses from my Facebook page and and display them in my app.
Does the Facebook API support that?
If it does, can anyone give a link for some tutorials or explain how can I make this?
I know that API supports an RSS feed but i don't found how to feed my statuses.
If you're using a Facebook page, you can easily use the graph API to query for posts made by that page. For example, for Starbucks:
http://graph.facebook.com/Starbucks/posts
You can simply load this in your browser to see the format the data comes back in, and all that's needed to access this data is a simple HTTP request. You can replace Starbucks with your Page's ID or username to get your Page's posts. These come back in JSON, which should be fairly easy to handle on your end.
Yes, the Facebook Graph API allows you to access your profile and extract any information you'd like from it.

Integration With Facebook

I've never used the FaceBook SDK before so I'm not sure what I should be using or whether what I'm thinking of can actually be done. But I want to try to integrate some Facebook functionality with my ASP.NET MVC3 application.
What I need to do:
I want to be able to access someone's Facebook account (granted their permission) and allow them to send out invitations to my website. But, when a friend clicks on the link in the invitation message (whether a wall post, PM... whatever), follows through and registers on the site, I want to be able to track that (maybe by appending the ID or username of the this user to the invitation link, and then extract it from the query string when the invited person/friend registers).
Questions:
From what I've read so far and according to this link, what I think I should be using is the Facebook Connect API. Am I right?
Is what I'm trying to achieve actually doable? Basically, can I append the username to the invitation link? Is Facebook okey with that?
Do you have any good resources other than the Facebook Developer Wiki? Share them please!
P.S: I do not want users to login to my website using their Facebook account. I have my own Membership system. I just want to allow them to invite their friends to register at my website and track that. More requirements might arise but for now that is all what I need.
Your help is appreciated!
EDIT:
Ok I went ahead and created some test app using the Developer FB app to do some experiments. One thing I do not understand though...
Canvas Page: The base URL of your app on Facebook.
Canvas URL: Facebook pulls the content for your app's canvas pages from this base URL.
So what exactly is the Canvas URL? From what I understand, it's a URL to a resource (page?) on my website which Facebook can display inside the Canvas Page, is that correct?
yes
Yes
Facebook documentation + facebook developers forum, that should be all for you. Also, as you are using asp.net mvc, facebooksdk discussion will help you also if you use that library. I will stringly recommend to use that library.
Also, it seems, you are a beginner on facebook api with c#. If so, you can consider my blog post for beginners on facebook open graph api tutorial in c#. There also some other related posts also.Hope you may like them.
Let me know if you wanted to know something else also specifically.
Yes
Yes
Nope. The Developer Wiki has its issues but the Facebook Docs usually solve your problems.

Simple Facebook API usage in Rails 3

I want to connect my app to Facebook in order to post on the user's wall. I want the user to click to post a message on his Wall, the pop-up of the js SDK should appear, he would login and authorize and get redirected to the home page as the pop-up disappears.
I was trying the fb_graph gem but had some hard troubles and I want to know: Is there a simpler way to do it?
Note that I don't want to make the user able to login in my app with Facebook, just post to his wall.
As Facebook does not offer any Ruby API, you will have to choose between using the JS SDK or implementing a Facebook share link.
If you only want to post in the user's wall, I recommend the second option because of ease and nature. You can customize the content of the post this way.
If you decide to go the JS way, you will have to:
Create a FB app.
Include FB SDK into your page.
Initialize the SDK with your app settings.
Ask for permissions to the user in order to post into her wall.
Assign a button to a function where you check for login. If she's already logged, show a window to post into the wall (FB popup or your own form, as the iframe dialogs are only available inside Facebook pages).
There is another alternative to step 5 by using Graph API and an access token, but it's a little bit more complicated and I don't recommend it if you are new to FB development.
I think, essentially, it's all or nothing when it comes to Facebook authentication. You're asking for permission to take over the user's identity and post on their Facebook wall - there will definitely be some kind of authentication and user approval. It's not a totally trivial process.
I'm sure you've looked already, but if you are OK using any of the social plugins that Facebook offers (http://developers.facebook.com/docs/plugins/), that might be an easier option to achieve what you're looking for.
If not, you'll have to gain a user's permission and post on the wall the way Facebook describes on their site. There's another gem, called Koala (https://github.com/arsduo/koala) that is pretty easy to use as well, but you can also take a look through the fb_graph documentation and see which pieces of code are applicable to your needs and duplicate that functionality.
The best source of information is on Facebook's site (http://developers.facebook.com/docs/reference/api/), where they describe the process in detail:
You can publish to the Facebook graph by issuing HTTP POST requests to the appropriate connection URLs, using an user access token or an app access token (for Open Graph Pages).
and
Most write operations require extended permissions for the active user. See the authentication guide for details on how you can request extended permissions from the user during the authentication step.
The first time I looked at this stuff I was totally overwhelmed, but play around with it and it will make a lot more sense.
I just saw #manuelpedrera 's answer, and that's a good step-by-step guide. Short answer: there's no shortcut.
Koala is a Facebook library for Ruby, supporting the Graph API (including the batch requests and photo uploads), the REST API, realtime updates, test users, and OAuth validation.
Take a look at Koala gem: https://github.com/arsduo/koala

Resources