Gooseman
Posts: 0
Joined: Sun Aug 17, 2014 3:33 am

How to generate apps access token facebook for Appery IO

Hi I am creating simple apps for my own simple business, I need an apps so my small group of customer can connect to small business information and on one of the page is for this apps to simply read from my company facebook timeline.

I read in the facebook developer information in order to get that I need to generate an app access token and need to make a graph API call .

as such as

GET /oauth/access_token?
client_id={app-id}
&client_secret={app-secret}
&grant_type=client_credentials

It seems it will call my app-id and app-secret and in return it will grant the app token

It seem make sense to me ..but I am not sure I am correct.

the second question how do I add this into Javascript under facebook Helper

Thank you very much

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

How to generate apps access token facebook for Appery IO

Hello,

Do you want to authorize with Facebook? Please follow this tutorial http://devcenter.appery.io/tutorials/...

Gooseman
Posts: 0
Joined: Sun Aug 17, 2014 3:33 am

How to generate apps access token facebook for Appery IO

Hi Alena,

thank you for your kind reply.

This tutorial explain how we develop the apps to allow load data from the facebook account of the logon user, this is not what I need.

What I need is for apps to load data from specific facebook account in this case my company facebook acount and it doesn't require user to logon to facebook.

thank you

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

How to generate apps access token facebook for Appery IO

Hi -

In the same way, you can create your own REST services to retrieve Facebook user info, or, for example, post a wall message based on the Facebook Graph API.

For more info, please check this section in this tutorial: http://devcenter.appery.io/tutorials/...

Gooseman
Posts: 0
Joined: Sun Aug 17, 2014 3:33 am

How to generate apps access token facebook for Appery IO

Hi Stephanov,

thank you for your reply.

Actually I had tried this tutorials ... I followed the instruction however as per what it is designated it is only allow me to load data from facebook for logged user.

what I need is for apps to load data from only one facebook account ( my company account) when the apps run by user,I don't need them to logon via apps to facebook since I don't need their data.

What I need maybe is to store the my company facebook access token in script . but I don't how to do it in appery.

thank you

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

How to generate apps access token facebook for Appery IO

Hi Gooseman,

That's not good way to store your company token in the app, also it's not good to pass it to the app cause of someone could get this info and use this token to make bad things with your account.

So i guess you need implement server code what is get info from your facebook account via facebook api and then return in to the app.

https://developers.facebook.com/docs/...

Regards.

Return to “Issues”