15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# File 'lib/sharemotion/sharers/facebook/shmfacebook.rb', line 15
def share(controller)
@facebook = Facebook.alloc.initWithAppId(FBSession.activeSession.appID, andDelegate:nil)
@facebook.accessToken = FBSession.activeSession.accessToken
@facebook.expirationDate = FBSession.activeSession.expirationDate
params = {
:app_id => FBSession.activeSession.appID,
:link => "#{@item[:url]}",
:picture => "#{@item[:image]}",
:name => "#{@item[:title]}",
:caption => "#{@item[:caption]}",
:description => "#{@item[:text]}"
}
@facebook.dialog("feed", andParams:params, andDelegate:nil)
true
end
|