diff options
author | Friendika <info@friendika.com> | 2011-06-21 00:50:54 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-06-21 00:50:54 -0700 |
commit | 2b11ff65dcee117111b2f5bc67b66879672c05b0 (patch) | |
tree | 243eb3b0d06f123bdd7bdfffd2bb9e96e112dad4 /addon/facebook/facebook.php | |
parent | 5a23440fb4d1798d84b3f419fb2ddded8160a4a2 (diff) | |
download | volse-hubzilla-2b11ff65dcee117111b2f5bc67b66879672c05b0.tar.gz volse-hubzilla-2b11ff65dcee117111b2f5bc67b66879672c05b0.tar.bz2 volse-hubzilla-2b11ff65dcee117111b2f5bc67b66879672c05b0.zip |
use original application if available
Diffstat (limited to 'addon/facebook/facebook.php')
-rw-r--r-- | addon/facebook/facebook.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/addon/facebook/facebook.php b/addon/facebook/facebook.php index 8d8f5a2e5..15dffa594 100644 --- a/addon/facebook/facebook.php +++ b/addon/facebook/facebook.php @@ -816,8 +816,10 @@ function fb_consume_stream($uid,$j,$wall = false) { $datarray['owner-link'] = $self[0]['url']; $datarray['owner-avatar'] = $self[0]['thumb']; } - - $datarray['app'] = 'facebook'; + if(isset($entry->application) && isset($entry->application->name) && strlen($entry->application->name)) + $datarray['app'] = $entry->application->name; + else + $datarray['app'] = 'facebook'; $datarray['author-name'] = $from->name; $datarray['author-link'] = 'http://facebook.com/profile.php?id=' . $from->id; $datarray['author-avatar'] = 'https://graph.facebook.com/' . $from->id . '/picture'; |