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