facebook_client 0.0.4 → 0.0.4.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -15,7 +15,12 @@ module FacebookClient
15
15
  @fb=fb
16
16
  @data=parse_fbs!(cookies["fbs_#{fb.app_id}"])
17
17
  end
18
-
18
+
19
+ def graph
20
+ @graph ||= Graph.new(@fb, @data["access_token"], 0)
21
+ @graph
22
+ end
23
+
19
24
  def parse_fbs!(fbs)
20
25
  @data = fbs &&
21
26
  check_sig_and_return_data(Rack::Utils.parse_query(fbs[1..-2]))
@@ -24,6 +24,11 @@ module FacebookClient
24
24
  def secure?
25
25
  @data.is_a?(Hash) and @data.has_key?('uid')
26
26
  end
27
+
28
+ def graph
29
+ @graph ||= Graph.new(@fb, @data["access_token"], 0)
30
+ @graph
31
+ end
27
32
 
28
33
  def uid
29
34
  @data['uid']
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: facebook_client
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 91
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
9
  - 4
10
- version: 0.0.4
10
+ - 2
11
+ version: 0.0.4.2
11
12
  platform: ruby
12
13
  authors:
13
14
  - David Crockett