Bug 41003 - Insert Facebook profile URL into Facebook Chat contacts’ ContactInfo
Summary: Insert Facebook profile URL into Facebook Chat contacts’ ContactInfo
Status: NEW
Alias: None
Product: Telepathy
Classification: Unclassified
Component: gabble (show other bugs)
Version: git master
Hardware: Other All
: medium normal
Assignee: Telepathy bugs list
QA Contact: Telepathy bugs list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-19 02:31 UTC by Will Thompson
Modified: 2013-09-02 16:10 UTC (History)
3 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Will Thompson 2011-09-19 02:31:31 UTC
I thought it might be nice to make Facebook Chat contacts’ information dialogs a little less sparse, so I had a quick crack at faking up their profile URL. (It relies on JIDs being of the form "-<digits>@chat.facebook.com", where https://www.facebook.com/profile.php?id=<digits> is their profile URL. There seems to be no way to get pretty https://www.facebook.com/<username> URLs.)

http://cgit.collabora.com/git/user/wjt/telepathy-gabble-wjt.git/commit/?h=facebook-url is my work in progress. It’s kind of tedious because right now the code that builds the ContactInfo structure doesn’t have access to the connection object to inspect the handle, or indeed to check whether we’re on a Facebook connection.

The other option would be to artificially insert a <URL/> element into the vCard, which might be neater maybe?

I’m not really working on this, it was just on a whim.
Comment 1 Guillaume Desmottes 2012-01-31 02:42:06 UTC
In a perfect world, Facebook's server could include this <URL> element directly. I sent a message to the "Facebook XMPP Developer Relations" group suggesting that.
Comment 2 Will Thompson 2013-01-21 16:07:51 UTC
My branch has gone away. I don't know when/why I deleted it.

I note that as of 0.15.1, courtesy of <https://bugs.freedesktop.org/show_bug.cgi?id=41789>, Facebook contacts' identifiers are exposed as Addressing1 contact attributes. Try:

gdbus call --session --dest org.freedesktop.Telepathy.Connection.gabble.jabber.will_2ejoseph_2ethompson_40chat_2efacebook_2ecom_2fb756e715 --object-path /org/freedesktop/Telepathy/Connection/gabble/jabber/will_2ejoseph_2ethompson_40chat_2efacebook_2ecom_2fb756e715  --method org.freedesktop.Telepathy.Connection.Interface.ContactList.GetContactListAttributes '["org.freedesktop.Telepathy.Connection.Interface.Addressing1"]' true

and see all the x-facebook-id stuff in there.

So UIs that know about Facebook can cross-reference if they like.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.