facebooker-lite 1.0.67
Sign up to get free protection for your applications and to get access to all the features.
- data/.autotest +15 -0
- data/CHANGELOG.rdoc +24 -0
- data/COPYING.rdoc +19 -0
- data/Manifest.txt +114 -0
- data/README.rdoc +120 -0
- data/Rakefile +94 -0
- data/TODO.rdoc +4 -0
- data/facebooker.gemspec +42 -0
- data/generators/xd_receiver/templates/xd_receiver.html +10 -0
- data/generators/xd_receiver/templates/xd_receiver_ssl.html +10 -0
- data/generators/xd_receiver/xd_receiver_generator.rb +10 -0
- data/init.rb +25 -0
- data/install.rb +12 -0
- data/lib/facebooker.rb +261 -0
- data/lib/facebooker/adapters/adapter_base.rb +91 -0
- data/lib/facebooker/adapters/bebo_adapter.rb +77 -0
- data/lib/facebooker/adapters/facebook_adapter.rb +60 -0
- data/lib/facebooker/admin.rb +42 -0
- data/lib/facebooker/application.rb +37 -0
- data/lib/facebooker/attachment.rb +51 -0
- data/lib/facebooker/batch_request.rb +45 -0
- data/lib/facebooker/data.rb +57 -0
- data/lib/facebooker/feed.rb +78 -0
- data/lib/facebooker/logging.rb +44 -0
- data/lib/facebooker/mobile.rb +20 -0
- data/lib/facebooker/mock/service.rb +50 -0
- data/lib/facebooker/mock/session.rb +18 -0
- data/lib/facebooker/model.rb +139 -0
- data/lib/facebooker/models/affiliation.rb +10 -0
- data/lib/facebooker/models/album.rb +11 -0
- data/lib/facebooker/models/applicationproperties.rb +39 -0
- data/lib/facebooker/models/applicationrestrictions.rb +10 -0
- data/lib/facebooker/models/comment.rb +9 -0
- data/lib/facebooker/models/cookie.rb +10 -0
- data/lib/facebooker/models/education_info.rb +11 -0
- data/lib/facebooker/models/event.rb +28 -0
- data/lib/facebooker/models/family_relative_info.rb +7 -0
- data/lib/facebooker/models/friend_list.rb +16 -0
- data/lib/facebooker/models/group.rb +36 -0
- data/lib/facebooker/models/info_item.rb +10 -0
- data/lib/facebooker/models/info_section.rb +10 -0
- data/lib/facebooker/models/location.rb +8 -0
- data/lib/facebooker/models/message_thread.rb +89 -0
- data/lib/facebooker/models/notifications.rb +17 -0
- data/lib/facebooker/models/page.rb +46 -0
- data/lib/facebooker/models/photo.rb +19 -0
- data/lib/facebooker/models/tag.rb +12 -0
- data/lib/facebooker/models/user.rb +751 -0
- data/lib/facebooker/models/video.rb +9 -0
- data/lib/facebooker/models/work_info.rb +10 -0
- data/lib/facebooker/parser.rb +970 -0
- data/lib/facebooker/rails/backwards_compatible_param_checks.rb +31 -0
- data/lib/facebooker/rails/controller.rb +353 -0
- data/lib/facebooker/rails/extensions/action_controller.rb +47 -0
- data/lib/facebooker/rails/extensions/rack_setup.rb +16 -0
- data/lib/facebooker/rails/extensions/routing.rb +15 -0
- data/lib/facebooker/rails/facebook_pretty_errors.rb +22 -0
- data/lib/facebooker/rails/facebook_request_fix.rb +28 -0
- data/lib/facebooker/rails/facebook_request_fix_2-3.rb +31 -0
- data/lib/facebooker/rails/facebook_session_handling.rb +68 -0
- data/lib/facebooker/rails/facebook_url_rewriting.rb +60 -0
- data/lib/facebooker/rails/helpers/fb_connect.rb +75 -0
- data/lib/facebooker/rails/integration_session.rb +38 -0
- data/lib/facebooker/rails/profile_publisher_extensions.rb +42 -0
- data/lib/facebooker/rails/publisher.rb +608 -0
- data/lib/facebooker/rails/routing.rb +49 -0
- data/lib/facebooker/rails/test_helpers.rb +68 -0
- data/lib/facebooker/rails/utilities.rb +22 -0
- data/lib/facebooker/server_cache.rb +24 -0
- data/lib/facebooker/service.rb +103 -0
- data/lib/facebooker/service/base_service.rb +19 -0
- data/lib/facebooker/service/curl_service.rb +44 -0
- data/lib/facebooker/service/net_http_service.rb +12 -0
- data/lib/facebooker/service/typhoeus_multi_service.rb +27 -0
- data/lib/facebooker/service/typhoeus_service.rb +17 -0
- data/lib/facebooker/session.rb +786 -0
- data/lib/facebooker/stream_post.rb +19 -0
- data/lib/facebooker/version.rb +9 -0
- data/lib/net/http_multipart_post.rb +123 -0
- data/lib/rack/facebook.rb +89 -0
- data/lib/rack/facebook_session.rb +21 -0
- data/lib/tasks/facebooker.rake +19 -0
- data/lib/tasks/facebooker.rb +2 -0
- data/lib/tasks/tunnel.rake +46 -0
- data/rails/init.rb +1 -0
- data/setup.rb +1585 -0
- data/templates/layout.erb +24 -0
- data/test/facebooker/adapters_test.rb +191 -0
- data/test/facebooker/admin_test.rb +102 -0
- data/test/facebooker/application_test.rb +110 -0
- data/test/facebooker/attachment_test.rb +72 -0
- data/test/facebooker/batch_request_test.rb +83 -0
- data/test/facebooker/data_test.rb +86 -0
- data/test/facebooker/logging_test.rb +43 -0
- data/test/facebooker/mobile_test.rb +45 -0
- data/test/facebooker/model_test.rb +133 -0
- data/test/facebooker/models/event_test.rb +15 -0
- data/test/facebooker/models/page_test.rb +56 -0
- data/test/facebooker/models/photo_test.rb +16 -0
- data/test/facebooker/models/user_test.rb +1074 -0
- data/test/facebooker/rails/facebook_request_fix_2-3_test.rb +25 -0
- data/test/facebooker/rails/facebook_url_rewriting_test.rb +76 -0
- data/test/facebooker/rails/integration_session_test.rb +13 -0
- data/test/facebooker/rails/publisher_test.rb +538 -0
- data/test/facebooker/rails_integration_test.rb +1543 -0
- data/test/facebooker/server_cache_test.rb +44 -0
- data/test/facebooker/service_test.rb +58 -0
- data/test/facebooker/session_test.rb +883 -0
- data/test/facebooker_test.rb +1263 -0
- data/test/fixtures/multipart_post_body_with_only_parameters.txt +33 -0
- data/test/fixtures/multipart_post_body_with_single_file.txt +38 -0
- data/test/fixtures/multipart_post_body_with_single_file_that_has_nil_key.txt +38 -0
- data/test/net/http_multipart_post_test.rb +52 -0
- data/test/rack/facebook_session_test.rb +34 -0
- data/test/rack/facebook_test.rb +73 -0
- data/test/rails_test_helper.rb +36 -0
- data/test/test_helper.rb +74 -0
- metadata +278 -0
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'facebooker/session'
|
2
|
+
|
3
|
+
module Facebooker
|
4
|
+
class MockSession < Session
|
5
|
+
def secured?
|
6
|
+
true
|
7
|
+
end
|
8
|
+
|
9
|
+
def secure!
|
10
|
+
@uid = 1
|
11
|
+
true
|
12
|
+
end
|
13
|
+
|
14
|
+
def service
|
15
|
+
@service ||= MockService.new(Facebooker.api_server_base, Facebooker.api_rest_path, @api_key)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,139 @@
|
|
1
|
+
module Facebooker
|
2
|
+
##
|
3
|
+
# helper methods primarily supporting the management of Ruby objects which are populatable via Hashes.
|
4
|
+
# Since most Facebook API calls accept and return hashes of data (as XML), the Model module allows us to
|
5
|
+
# directly populate a model's attributes given a Hash with matching key names.
|
6
|
+
module Model
|
7
|
+
class UnboundSessionException < Exception; end
|
8
|
+
def self.included(includer)
|
9
|
+
includer.extend ClassMethods
|
10
|
+
includer.__send__(:attr_writer, :session)
|
11
|
+
includer.__send__(:attr_reader, :anonymous_fields)
|
12
|
+
end
|
13
|
+
module ClassMethods
|
14
|
+
##
|
15
|
+
# Instantiate a new instance of the class into which we are included and populate that instance's
|
16
|
+
# attributes given the provided Hash. Key names in the Hash should map to attribute names on the model.
|
17
|
+
def from_hash(hash)
|
18
|
+
instance = new(hash)
|
19
|
+
yield instance if block_given?
|
20
|
+
instance
|
21
|
+
end
|
22
|
+
|
23
|
+
##
|
24
|
+
# Create a standard attr_writer and a populating_attr_reader
|
25
|
+
def populating_attr_accessor(*symbols)
|
26
|
+
attr_writer(*symbols)
|
27
|
+
populating_attr_reader(*symbols)
|
28
|
+
end
|
29
|
+
|
30
|
+
##
|
31
|
+
# Create a reader that will attempt to populate the model if it has not already been populated
|
32
|
+
def populating_attr_reader(*symbols)
|
33
|
+
symbols.each do |symbol|
|
34
|
+
define_method(symbol) do
|
35
|
+
populate unless populated?
|
36
|
+
instance_variable_get("@#{symbol}")
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
def populating_hash_settable_accessor(symbol, klass)
|
42
|
+
populating_attr_reader symbol
|
43
|
+
hash_settable_writer(symbol, klass)
|
44
|
+
end
|
45
|
+
|
46
|
+
def populating_hash_settable_list_accessor(symbol, klass)
|
47
|
+
populating_attr_reader symbol
|
48
|
+
hash_settable_list_writer(symbol, klass)
|
49
|
+
end
|
50
|
+
|
51
|
+
#
|
52
|
+
# Declares an attribute named ::symbol:: which can be set with either an instance of ::klass::
|
53
|
+
# or a Hash which will be used to populate a new instance of ::klass::.
|
54
|
+
def hash_settable_accessor(symbol, klass)
|
55
|
+
attr_reader symbol
|
56
|
+
hash_settable_writer(symbol, klass)
|
57
|
+
end
|
58
|
+
|
59
|
+
def hash_settable_writer(symbol, klass)
|
60
|
+
define_method("#{symbol}=") do |value|
|
61
|
+
instance_variable_set("@#{symbol}", value.kind_of?(Hash) ? klass.from_hash(value) : value)
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
#
|
66
|
+
# Declares an attribute named ::symbol:: which can be set with either a list of instances of ::klass::
|
67
|
+
# or a list of Hashes which will be used to populate a new instance of ::klass::.
|
68
|
+
def hash_settable_list_accessor(symbol, klass)
|
69
|
+
attr_reader symbol
|
70
|
+
hash_settable_list_writer(symbol, klass)
|
71
|
+
end
|
72
|
+
|
73
|
+
def hash_settable_list_writer(symbol, klass)
|
74
|
+
define_method("#{symbol}=") do |list|
|
75
|
+
instance_variable_set("@#{symbol}", list.map do |item|
|
76
|
+
item.kind_of?(Hash) ? klass.from_hash(item) : item
|
77
|
+
end)
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
def id_is(attribute)
|
82
|
+
(file, line) = caller.first.split(':')
|
83
|
+
|
84
|
+
class_eval(<<-EOS, file, line.to_i)
|
85
|
+
def #{attribute}=(value)
|
86
|
+
@#{attribute} = value.to_i
|
87
|
+
end
|
88
|
+
|
89
|
+
attr_reader #{attribute.inspect}
|
90
|
+
alias :id #{attribute.inspect}
|
91
|
+
alias :id= #{"#{attribute}=".to_sym.inspect}
|
92
|
+
EOS
|
93
|
+
end
|
94
|
+
end
|
95
|
+
|
96
|
+
##
|
97
|
+
# Centralized, error-checked place for a model to get the session to which it is bound.
|
98
|
+
# Any Facebook API queries require a Session instance.
|
99
|
+
def session
|
100
|
+
@session || (raise UnboundSessionException, "Must bind this object to a Facebook session before querying")
|
101
|
+
end
|
102
|
+
|
103
|
+
#
|
104
|
+
# This gets populated from FQL queries.
|
105
|
+
def anon=(value)
|
106
|
+
@anonymous_fields = value
|
107
|
+
end
|
108
|
+
|
109
|
+
def initialize(hash = {})
|
110
|
+
populate_from_hash!(hash)
|
111
|
+
end
|
112
|
+
|
113
|
+
def populate
|
114
|
+
raise NotImplementedError, "#{self.class} included me and should have overriden me"
|
115
|
+
end
|
116
|
+
|
117
|
+
def populated?
|
118
|
+
@populated
|
119
|
+
end
|
120
|
+
|
121
|
+
##
|
122
|
+
# Set model's attributes via Hash. Keys should map directly to the model's attribute names.
|
123
|
+
def populate_from_hash!(hash)
|
124
|
+
unless hash.nil? || hash.empty?
|
125
|
+
hash.each do |key, value|
|
126
|
+
set_attr_method = "#{key}="
|
127
|
+
unless value.nil?
|
128
|
+
if respond_to?(set_attr_method)
|
129
|
+
self.__send__(set_attr_method, value)
|
130
|
+
else
|
131
|
+
Facebooker::Logging.log_info("**Warning**, Attempt to set non-attribute: #{key}",hash)
|
132
|
+
end
|
133
|
+
end
|
134
|
+
end
|
135
|
+
@populated = true
|
136
|
+
end
|
137
|
+
end
|
138
|
+
end
|
139
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
require 'facebooker/model'
|
2
|
+
module Facebooker
|
3
|
+
##
|
4
|
+
# Represents a user's affiliation, for example, which educational institutions
|
5
|
+
# the user is associated with.
|
6
|
+
class Affiliation
|
7
|
+
include Model
|
8
|
+
attr_accessor :name, :status, :type, :year, :nid
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
require 'facebooker/model'
|
2
|
+
module Facebooker
|
3
|
+
##
|
4
|
+
# A simple representation of a photo album.
|
5
|
+
class Album
|
6
|
+
include Model
|
7
|
+
attr_accessor :aid, :cover_pid, :owner, :name, :created,
|
8
|
+
:modified, :description, :location, :link, :size, :visible
|
9
|
+
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
module Facebooker
|
2
|
+
|
3
|
+
# application_name string The name of your application.
|
4
|
+
# callback_url string Your application's callback URL. The callback URL cannot be longer than 100 characters.
|
5
|
+
# post_install_url string The URL where a user gets redirected after installing your application. The post-install URL cannot be longer than 100 characters.
|
6
|
+
# edit_url string
|
7
|
+
# dashboard_url string
|
8
|
+
# uninstall_url string The URL where a user gets redirected after removing your application.
|
9
|
+
# ip_list string For Web-based applications, these are the IP addresses of your servers that can access Facebook's servers and serve information to your application.
|
10
|
+
# email string The email address associated with the application; the email address Facebook uses to contact you about your application. (default value is your Facebook email address.)
|
11
|
+
# description string The description of your application.
|
12
|
+
# use_iframe bool Indicates whether you render your application with FBML (0) or in an iframe (1). (default value is 1)
|
13
|
+
# desktop bool Indicates whether your application is Web-based (0) or gets installed on a user's desktop (1). (default value is 1)
|
14
|
+
# is_mobile bool Indicates whether your application can run on a mobile device (1) or not (0). (default value is 1)
|
15
|
+
# default_fbml string The default FBML code that appears in the user's profile box when he or she adds your application.
|
16
|
+
# default_column bool Indicates whether your application appears in the wide (1) or narrow (0) column of a user's Facebook profile. (default value is 1)
|
17
|
+
# message_url string For applications that can create attachments, this is the URL where you store the attachment's content.
|
18
|
+
# message_action string For applications that can create attachments, this is the label for the action that creates the attachment. It cannot be more than 20 characters.
|
19
|
+
# about_url string This is the URL to your application's About page. About pages are now Facebook Pages.
|
20
|
+
# private_install bool Indicates whether you want to disable (1) or enable (0) News Feed and Mini-Feed stories when a user installs your application. (default value is 1)
|
21
|
+
# installable bool Indicates whether a user can (1) or cannot (0) install your application. (default value is 1)
|
22
|
+
# privacy_url string The URL to your application's privacy terms.
|
23
|
+
# help_url string The URL to your application's help page.
|
24
|
+
# see_all_url string
|
25
|
+
# tos_url string The URL to your application's Terms of Service.
|
26
|
+
# dev_mode bool Indicates whether developer mode is enabled (1) or disabled (0). Only developers can install applications in developer mode. (default value is 1)
|
27
|
+
# preload_fql string A preloaded FQL query.
|
28
|
+
class ApplicationProperties
|
29
|
+
include Model
|
30
|
+
FIELDS = [ :application_name, :callback_url, :post_install_url, :edit_url, :dashboard_url,
|
31
|
+
:uninstall_url, :ip_list, :email, :description, :use_iframe, :desktop, :is_mobile,
|
32
|
+
:default_fbml, :default_column, :message_url, :message_action, :about_url,
|
33
|
+
:private_install, :installable, :privacy_url, :help_url, :see_all_url, :tos_url,
|
34
|
+
:dev_mode, :preload_fql, :icon_url, :canvas_name, :logo_url, :connect_logo_url ]
|
35
|
+
|
36
|
+
attr_accessor(*FIELDS)
|
37
|
+
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
require 'facebooker/model'
|
2
|
+
module Facebooker
|
3
|
+
class Event
|
4
|
+
|
5
|
+
##
|
6
|
+
# The relationship between a Facebook user and an Event to which he or she has been
|
7
|
+
# invited and may or may not be attending (based on #rsvp_status)
|
8
|
+
class Attendance
|
9
|
+
include Model
|
10
|
+
attr_accessor :eid, :uid, :rsvp_status
|
11
|
+
|
12
|
+
##
|
13
|
+
# Get the full, populated Event object which this Attendance is associated with.
|
14
|
+
# First access will query the Facebook API (facebook.events.get). Subsequent
|
15
|
+
# calls are retrieved from in-memory cache.
|
16
|
+
def event
|
17
|
+
@event ||= Event.from_hash(session.post('facebook.events.get', :eids => [eid]).first)
|
18
|
+
end
|
19
|
+
|
20
|
+
#TODO: implement user() method
|
21
|
+
end
|
22
|
+
|
23
|
+
include Model
|
24
|
+
attr_accessor :pic, :pic_small, :pic_big, :name, :creator, :update_time, :description, :tagline, :venue, :host, :event_type, :nid, :location, :end_time, :start_time, :event_subtype
|
25
|
+
|
26
|
+
id_is :eid
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'facebooker/model'
|
2
|
+
module Facebooker
|
3
|
+
##
|
4
|
+
# A simple representation of a friend list.
|
5
|
+
class FriendList
|
6
|
+
include Model
|
7
|
+
attr_accessor :name
|
8
|
+
|
9
|
+
id_is :flid
|
10
|
+
|
11
|
+
# We need this to be an integer, so do the conversion
|
12
|
+
def flid=(f)
|
13
|
+
@flid= ( f.nil? ? nil : f.to_i)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
require 'facebooker/model'
|
2
|
+
module Facebooker
|
3
|
+
class Group
|
4
|
+
##
|
5
|
+
# The model of a user's relationship to a group. Users can occupy different positions within a group (e.g. 'owner')
|
6
|
+
class Membership
|
7
|
+
include Model
|
8
|
+
attr_accessor :position, :gid, :uid
|
9
|
+
end
|
10
|
+
include Model
|
11
|
+
attr_accessor :pic, :pic_small, :pic_big, :name, :creator, :recent_news, :update_time, :group_subtype, :group_type, :website, :office, :description, :venue, :nid, :privacy
|
12
|
+
|
13
|
+
id_is :gid
|
14
|
+
|
15
|
+
##
|
16
|
+
# Get the full list of members as populated User objects. First time fetches group members via Facebook API call.
|
17
|
+
# Subsequent calls return cached values.
|
18
|
+
# This is a convenience method for getting all of the Membership instances and instantiating User instances for each Membership.
|
19
|
+
def members
|
20
|
+
@members ||= memberships.map do |membership|
|
21
|
+
User.new(membership.uid, session)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
##
|
26
|
+
# Get a list of Membership instances associated with this Group. First call retrieves the Membership instances via a Facebook
|
27
|
+
# API call. Subsequent calls are retrieved from in-memory cache.
|
28
|
+
def memberships
|
29
|
+
@memberships ||= session.post('facebook.groups.getMembers', :gid => gid).map do |hash|
|
30
|
+
Membership.from_hash(hash) do |membership|
|
31
|
+
membership.gid = gid
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,89 @@
|
|
1
|
+
require 'facebooker/model'
|
2
|
+
module Facebooker
|
3
|
+
class MessageThread
|
4
|
+
include Model
|
5
|
+
|
6
|
+
id_is :thread_id
|
7
|
+
attr_accessor :subject, :updated_time, :recipients
|
8
|
+
attr_accessor :parent_message_id, :parent_thread_id, :message_count
|
9
|
+
attr_accessor :snippet, :snippet_author, :object_id, :unread
|
10
|
+
|
11
|
+
class Message
|
12
|
+
include Model
|
13
|
+
|
14
|
+
attr_accessor :message_id, :author_id, :body, :created_time, :attachment, :thread_id
|
15
|
+
|
16
|
+
# An attachment can be a photo, a video, or a link
|
17
|
+
class Attachment
|
18
|
+
include Model
|
19
|
+
|
20
|
+
attr_accessor :name, :href, :icon, :caption, :description
|
21
|
+
|
22
|
+
# The Facebook messages API is in beta, this helper method is supposed to fail anytime soon
|
23
|
+
def video?
|
24
|
+
self.href =~ /\Ahttp:\/\/www\.facebook\.com\/video\/video\.php.*/
|
25
|
+
end
|
26
|
+
|
27
|
+
# The Facebook messages API is in beta, this helper method is supposed to fail anytime soon
|
28
|
+
def photo?
|
29
|
+
self.href =~ /\Ahttp:\/\/www\.facebook\.com\/photo\.php.*/
|
30
|
+
end
|
31
|
+
|
32
|
+
# The Facebook messages API is in beta, this helper method is supposed to fail anytime soon
|
33
|
+
def link?
|
34
|
+
!video? && !photo?
|
35
|
+
end
|
36
|
+
end
|
37
|
+
hash_settable_accessor :attachment, Facebooker::MessageThread::Message::Attachment
|
38
|
+
end
|
39
|
+
hash_settable_list_accessor :messages, Facebooker::MessageThread::Message
|
40
|
+
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
# Example of attachments
|
45
|
+
|
46
|
+
# -- Photo --
|
47
|
+
|
48
|
+
# <attachment>
|
49
|
+
# <media list="true"/>
|
50
|
+
# <href>http://www.facebook.com/photo.php?pid=12345&id=54321</href>
|
51
|
+
# <properties list="true"/>
|
52
|
+
# <icon>http://b.static.ak.fbcdn.net/rsrc.php/zB010/hash/9yvl71tw.gif</icon>
|
53
|
+
# <fb_object_type/>
|
54
|
+
# <fb_object_id/>
|
55
|
+
# <tagged_ids list="true"/>
|
56
|
+
# </attachment>
|
57
|
+
|
58
|
+
# -- Webcam video --
|
59
|
+
|
60
|
+
# <attachment>
|
61
|
+
# <media list="true"/>
|
62
|
+
# <name>Feb 10, 2010 1:26pm</name>
|
63
|
+
# <href>http://www.facebook.com/video/video.php?v=12345</href>
|
64
|
+
# <properties list="true"/>
|
65
|
+
# <icon>http://static.ak.fbcdn.net/rsrc.php/zB010/hash/9yvl71tw.gif</icon>
|
66
|
+
# <fb_object_type/>
|
67
|
+
# <fb_object_id/>
|
68
|
+
# <tagged_ids list="true"/>
|
69
|
+
# </attachment>
|
70
|
+
|
71
|
+
# -- Link --
|
72
|
+
|
73
|
+
# <attachment>
|
74
|
+
# <media list="true">
|
75
|
+
# <stream_media>
|
76
|
+
# <href>http://www.facebook.com/l.php?u=http%253A%252F%252Fwww.google.fr%252F&h=e46dd63cdbfadb74958fbe44e98f339c</href>
|
77
|
+
# <type>link</type>
|
78
|
+
# <src>http://external.ak.fbcdn.net/safe_image.php?d=dd54bba6b6e6479a89bb8084573c02c8&w=90&h=90&url=http%3A%2F%2Fwww.google.fr%2Fintl%2Ffr_fr%2Fimages%2Flogo.gif</src>
|
79
|
+
# </stream_media>
|
80
|
+
# </media>
|
81
|
+
# <name>Google</name>
|
82
|
+
# <href>http://www.facebook.com/l.php?u=http%253A%252F%252Fwww.google.fr%252F&h=e46dd63cdbfadb74958fbe44e98f339c</href>
|
83
|
+
# <caption>www.google.fr</caption>
|
84
|
+
# <properties list="true"/>
|
85
|
+
# <icon>http://b.static.ak.fbcdn.net/rsrc.php/zB010/hash/9yvl71tw.gif</icon>
|
86
|
+
# <fb_object_type/>
|
87
|
+
# <fb_object_id/>
|
88
|
+
# <tagged_ids list="true"/>
|
89
|
+
# </attachment>
|