module Mingle::Concerns::Models::Facebook::Post
Public Instance Methods
avatar()
click to toggle source
# File lib/mingle/concerns/models/facebook/post.rb, line 36 def avatar profile_image_url end
large_picture()
click to toggle source
Large pictures are not directly provided through the Graph API Note: Not a documented Facebook
feature and may potentially break in the future
# File lib/mingle/concerns/models/facebook/post.rb, line 20 def large_picture picture.gsub(/_(?:s|t)\.(jpg|jpeg|png|gif)$/, '_b.\1') if picture.present? end
profile_image_url()
click to toggle source
# File lib/mingle/concerns/models/facebook/post.rb, line 28 def profile_image_url "https://graph.facebook.com/#{user_id}/picture" if user_id.present? end
profile_url()
click to toggle source
# File lib/mingle/concerns/models/facebook/post.rb, line 24 def profile_url "https://www.facebook.com/#{user_id}" if user_id.present? end