Updated facebook api example
This commit is contained in:
@ -5,7 +5,6 @@ block content
|
|||||||
h2
|
h2
|
||||||
i.fa.fa-facebook-square(style='color: #335397')
|
i.fa.fa-facebook-square(style='color: #335397')
|
||||||
| Facebook API
|
| Facebook API
|
||||||
|
|
||||||
.btn-group.btn-group-justified
|
.btn-group.btn-group-justified
|
||||||
a.btn.btn-primary(href='https://developers.facebook.com/docs/graph-api/quickstart/', target='_blank')
|
a.btn.btn-primary(href='https://developers.facebook.com/docs/graph-api/quickstart/', target='_blank')
|
||||||
i.fa.fa-check-square-o
|
i.fa.fa-check-square-o
|
||||||
@ -17,8 +16,10 @@ block content
|
|||||||
i.fa.fa-code-fork
|
i.fa.fa-code-fork
|
||||||
| API Reference
|
| API Reference
|
||||||
|
|
||||||
h2 /me
|
h3
|
||||||
img(src='https://graph.facebook.com/#{me.id}/picture?type=large', width='90', height='90')
|
i.fa.fa-user
|
||||||
|
| My Profile
|
||||||
|
img.thumbnail(src='https://graph.facebook.com/#{me.id}/picture?type=large', width='90', height='90')
|
||||||
h4= me.name
|
h4= me.name
|
||||||
h6 First Name: #{me.first_name}
|
h6 First Name: #{me.first_name}
|
||||||
h6 Last Name: #{me.last_name}
|
h6 Last Name: #{me.last_name}
|
||||||
@ -29,10 +30,11 @@ block content
|
|||||||
h6 Locale: #{me.locale}
|
h6 Locale: #{me.locale}
|
||||||
h6 Timezone: #{me.timezone}
|
h6 Timezone: #{me.timezone}
|
||||||
|
|
||||||
h2 /me/friends
|
h3
|
||||||
|
i.fa.fa-group
|
||||||
|
| My Friends
|
||||||
.row
|
.row
|
||||||
for friend in friends
|
for friend in friends
|
||||||
.col-xs-3.col-md-2
|
.col-xs-3.col-md-2
|
||||||
a.thumbnail(href='http://facebook.com/#{friend.id}')
|
a.thumbnail(href='http://facebook.com/#{friend.id}')
|
||||||
img(src='https://graph.facebook.com/#{friend.id}/picture?width=150&height=150')
|
img(src='https://graph.facebook.com/#{friend.id}/picture?width=150&height=150')
|
||||||
div.facebook-caption= friend.name
|
|
||||||
|
Reference in New Issue
Block a user