[
https://issues.apache.org/jira/browse/STREAMS-622?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16662767#comment-16662767
]
ASF GitHub Bot commented on STREAMS-622:
----------------------------------------
steveblackmon closed pull request #461: resolves STREAMS-622
URL: https://github.com/apache/streams/pull/461
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git
a/streams-contrib/streams-provider-facebook/src/main/templates/facebook.ttl.ftl
b/streams-contrib/streams-provider-facebook/src/main/templates/facebook.ttl.ftl
index eda16bbb48..f9d8928ed6 100644
---
a/streams-contrib/streams-provider-facebook/src/main/templates/facebook.ttl.ftl
+++
b/streams-contrib/streams-provider-facebook/src/main/templates/facebook.ttl.ftl
@@ -96,6 +96,13 @@
.
</#if>
+<#attempt>
+ <#assign your_address_books = pp.loadData('json',
'about_you/your_address_books.json')>
+ <#assign contacts = your_address_books.address_book.address_book>
+ <#recover>
+ <#assign contacts=[]
+</#attempt>
+
<#attempt>
<#assign friends = pp.loadData('json', 'friends/friends.json')>
<#recover>
@@ -115,6 +122,19 @@
<#elseif (nameparts?size == 2)>
vcard:family-name "${nameparts[1]}" ;
</#if>
+<#list contacts as contact>
+ <#if friend.name == contact.name>
+ <#list contact.details![] as detail>
+ <#if detail.contact_point?starts_with("+")>
+ <#attempt>
+ <#assign phone=detail.contact_point>
+ vcard:tel "tel:${phone}" ;
+ <#recover>
+ </#attempt>
+ </#if>
+ </#list>
+ </#if>
+</#list>
.
:${id}-connect-${fid}
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> Attach phone numbers from user address book to facebook friends
> ----------------------------------------------------------------
>
> Key: STREAMS-622
> URL: https://issues.apache.org/jira/browse/STREAMS-622
> Project: Streams
> Issue Type: Improvement
> Reporter: Steve Blackmon
> Priority: Major
>
> about_you/your_address_books.json contains phone numbers of friends. Attach
> them to the as:Profiles of friends using name matching.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)