<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Facebook integration bug fix for libraries.post.js in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/facebook-integration-bug-fix-for-libraries-post-js/m-p/146258#M102166</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There's a bug in libraries.post.js. Using the latest build (rev 1374 of community HEAD) if you are looking at a list of documents in someone else's library, you will see a link that says "Back to John Smith's Libraries". If you click on that link you will see John Smith's context but your list of libraries instead of John Smith's libraries.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The bug is fixed by editing libraries.post.js and changing the code to use the argument passed to the web script (which is the FB user ID of the user who's libraries you want to see) instead of the user ID of the currently logged in user.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So change:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp; var userFolder = appFolder.childByNamePath("FB" + facebook.user);&lt;BR /&gt;&amp;nbsp; if (userFolder == undefined)&lt;BR /&gt;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (parseInt(facebook.user) != parseInt(url.extension))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; status.code = 500;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; status.message = "User " + url.extension + " does not have a document libraries folder";&lt;BR /&gt; &lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;To:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp; var userLib = url.extension;&lt;BR /&gt;&amp;nbsp; var userFolder = appFolder.childByNamePath("FB" + userLib);&lt;BR /&gt;&amp;nbsp; if (userFolder == undefined)&lt;BR /&gt;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (parseInt(facebook.user) != parseInt(userLib))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; status.code = 500;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; status.message = "User " + userLib + " does not have a document libraries folder";&lt;BR /&gt; &lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Dec 2007 03:16:00 GMT</pubDate>
    <dc:creator>jpotts</dc:creator>
    <dc:date>2007-12-11T03:16:00Z</dc:date>
    <item>
      <title>Facebook integration bug fix for libraries.post.js</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/facebook-integration-bug-fix-for-libraries-post-js/m-p/146258#M102166</link>
      <description>There's a bug in libraries.post.js. Using the latest build (rev 1374 of community HEAD) if you are looking at a list of documents in someone else's library, you will see a link that says "Back to John Smith's Libraries". If you click on that link you will see John Smith's context but your list of li</description>
      <pubDate>Tue, 11 Dec 2007 03:16:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/facebook-integration-bug-fix-for-libraries-post-js/m-p/146258#M102166</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2007-12-11T03:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Facebook integration bug fix for libraries.post.js</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/facebook-integration-bug-fix-for-libraries-post-js/m-p/146259#M102167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for providing the fix.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I had seen that bug, but not the time to diagnose and fix.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll check-in to HEAD.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2007 10:28:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/facebook-integration-bug-fix-for-libraries-post-js/m-p/146259#M102167</guid>
      <dc:creator>davidc</dc:creator>
      <dc:date>2007-12-11T10:28:33Z</dc:date>
    </item>
  </channel>
</rss>

