Open graph stories Facebook - facebook-graph-api

I am new in Facebook App. and I just discovered Open Graph stories. I'm wondering - where should I insert action and object code? What are the steps in approval procedure?

I'm still new to this topic but found out some stuff (not completely yet!).
Via developer.facebook.com you have your app. You can add objects / actions to the left of the screen. The approval depends on the rights your app requires. Are you using the open graph for web or mobile app? Eventually you'll need to create a screencast (video) of how Facebook works in your app to get approved.

Related

Is there any way of creating facebook events using Facebook SDK?

I want to build an app for publicising events. Ideally I would like to create the event via my app and somehow add this as an event to a business facebook page. Every avenue I have looked at suggests that what I want to do is just not possible.
Am I correct in this conclusion?
As a workaround, can you use the facebook API to create timed posts such that they would appear on a businesses time line with date and time on?

Cannot access the Page API at all for a newly created app and page

I'm trying to do new development on the FB platform post-Cambridge Analytica. Two days ago - i.e. after the review and restrictions started - I created a new FB app and a new Page. Using the Graph API Explorer, I can call /me/ on my new page when the selected app is the Explorer app:
However, when I use my new app, I get the infamous OAuth error about "non-active apps or apps that have not recently accessed this data":
The page access tokens for the two calls have the same permissions, the defaults Graph API Explorer uses:
I'm aware of this question that deals with the general case of this error: Why does Facebook Graph API say my account is non-active?
However, some of the answers to it hint that either having "a first-party relationship" is what determines if I'm allowed access, or not asking for specific fields; and it seems to be about applications that worked before the drama and stopped working after. My app and page are new, created and admined by my account, I can hardly have a more first-party relationship than that; and I'm not asking any fields that aren't publically available for the page anyway. I've tried publishing and unpublishing the page, as well as having the app be in development or live.
Is there any way to actually start a new FB app before the dust settles? Or does "not active or hasn't recently accessed the data" mean only apps that were live and connected to the given pages before the clampdown can work?

FB does not allow using FB share dialog with Posting through Graph api

Whe I am trying to get permission for publish_actions for my facebook app, it asks few points. One of those points is -
My app does not use the Facebook Feed Dialog or the Facebook Share Dialog to publish content
This means that If I want to get the publish_actions permission for using graph api to post on a user's wall I will have to remove all the FB share dialogs used in every place of my site.
After reading above I decided not to use publish_actions permission at all. But then I got a chance to look into change.org website. They are actually using both kynd of sharing. On the campaigns, they post to your wall via Facebook Graph API and on their blogs they are using facebook share dialog. So I am bit confused that can we use both simultaneously or not? And if not, how the change.org is able to do it?

Facebook communication to Application

The start-up i currently work for is oriented around restaurant wait times. For our v1.25 specifications our clients -restaurants- that have Facebook pages want to be able to communicate to their app profile from their Facebook page.
The closest i have came to answering this question is the Graph API. However, the Graph API only allows us to read and write data to FB pages. So, is there a way for a restaurants FB page to write to its app profile? Secondly, Loso, whom we have modeled some of our designs from has this ability, does anyone have an idea as to how they have done it?
--Boris M.
Here is an option that you can consider...
When you are designing the app you can also develop a page tab to go with it...
You will find this option in the basic settings of the app.
You can make it to install for all first time users of your app, by getting a list of all his pages he created using that profile then install it on the one he selects.
This page tab when installed on a page will appears just where other tabs on the page appers(e.g. events, notes etc. occurs)
You can provide your required functionality on this tab as you like.
Thus the user can just select that tab on the page and use its functionality to post on the profile page of the app.
Hope this works for you... and also u can check out the jobcaster app it does something like that!

Can I create a facebook app automatically(from a java program) using any api from a java program or servlet?

I am searching for an automated mechanism to create a facebook app from my java program/servlet.
Usually, I have to go to developers.facebok.com, then click the "Apps" link at the top, then hit the "Create new App" button and create an app by providing the site url etc.
I am having a requirement where a user enters his facebook id in my site and hits the "Create App" button. My site will authenticate with facebook using OAuth 2.0 and will have to create an app in the users account. The app generally points to the user's profile page of my site.
Is it possible to do this? Can any one help me?
Thank you all in advance.
In short, no you can't. You have to verify that you are a human when you create an app, and facebook intentionally do not provide a way to programmatically create apps.