Showing posts with label Facebook. Show all posts
Showing posts with label Facebook. Show all posts
0
Posted on 2:58 AM by Softminer and filed under

How to generate long life access token

1. First you need to create an App, for creating app go to https://developers.facebook.com

From menu App, choose Add a new app

when you created app you will have a App ID and App Secret key

2. Gerenerating short access token which is 1 hour valid
From menu choose Tools -> Access Token
then you have the "User Token"

3. Call facebook Api
Go to Tools-> Graph API explorer
for example /me?fields=id,name
would be https://graph.facebook.com/me?fields=id,name&access_token={access_token}


4. To generate 2 months valid access token, use following get request

https://graph.facebook.com/oauth/access_token? grant_type=fb_exchange_token& client_id={app-id}& client_secret={app-secret}& fb_exchange_token={short-lived-token}

app-id you get from step 1
app-secret you get from step 1
short-lived-token you get from step 2

5. Long life valid token
$facebook->api("/PAGE_ID?fields=access_token");



related links +

0
Posted on 6:56 AM by Softminer and filed under

There are some great applications that can be used to setup a fanpage for music like

http://www.rootmusic.com/
rootmusic is free for fanpages more than 50k fans.

http://www.facebook.com/iFrameWrapper
professional version is 15 € donation.

http://www.damntheradio.com
Fan bridge.
1
Posted on 2:31 AM by Softminer and filed under ,

sometime facebook can not fetch your image in your page. to add image to your link you can use :

<link rel="image_src" href="http://media.clickonf5.org/image/logo.png" />

facebook will cache the facebook pages, if you want to refresh the cache you can add some parameter to your page like mypage.html?t=! or using URL Linter

URL Linter
http://developers.facebook.com/tools/lint/

read more +,+