HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Facebook addon problems

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#108041 (In Topic #21066)
Avatar

Fan in action

Hello,

While testing Facebook syndication addon I've found problems with it:

- First - when viewing user's profile, under avatar is link to facebook profile, but ID not match user's profile...so can't get into facebook profile using this functionality

- Second - Admin Zone -> Setup -> Facebook Syndication / login -> redirects to facebook -> get an error "Invalid Scopes: publish_stream, offline_access. This message is only shown to developers. Users of your app will ignore these permissions if present. Please read the documentation for valid permissions at: https://developers.facebook.com/docs/facebook-login/permissions"

Found this about it: http://stackoverflow.com/questions/30074899/error-invalid-scopes-offline-access-publish-stream-when-i-try-to-connect-wi


But where to replace it or is here any hotfix? 



Sorry for ugly English ^^ 
Greetings
Back to the top
 
Posted
Rating:
#108070
Avatar

Looks like Facebook made some changes :S. They seem to love that. Taking a look...


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Important!
Posted
Rating:
#108072
Avatar

Automated fix message

RATISOFT said

Hello,

While testing Facebook syndication addon I've found problems with it:

- First - when viewing user's profile, under avatar is link to facebook profile, but ID not match user's profile...so can't get into facebook profile using this functionality

- Second - Admin Zone -> Setup -> Facebook Syndication / login -> redirects to facebook -> get an error "Invalid Scopes: publish_stream, offline_access. This message is only shown to developers. Users of your app will ignore these permissions if present. Please read the documentation for valid permissions at: https://developers.facebook.com/docs/facebook-login/permissions"

Found this about it: http://stackoverflow.com/questions/30074899/error-invalid-scopes-offline-access-publish-stream-when-i-try-to-connect-wi


But where to replace it or is here any hotfix? 



Sorry for ugly English ^^ 
Greetings
This issue has been filed on the tracker as issue #1937, with a fix.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Important!
 
Posted
Rating:
#108103
Avatar

Fan in action

First problem is fixed, but second is still actual.
When I click on Admin Zone -> Setup -> Facebook Syndication / login I get an error about Invalid scopes …(admin is not linked by Facebook)

I've changing to an admin account who's logged with facebook & click on Admin Zone -> Setup -> Facebook Syndication / login … another error incoming ;)

Code

PHP ERROR [1] Call to undefined method ocpFacebook::setExtendedAccessToken() in sources_custom/hooks/systems/syndication/facebook.php on line 109 (version: 9.0.19, PHP version: 5.4.40, URL: /adminzone/pg/facebook_oauth/index.php?oauth_in_progress=1&keep_refreshed_once=1&code=AQBryAOU9E7yUikvM-KoZRE9sZGDVKBq-MtiVIsmdgAOb9CQhQzJSuMuFijnpKmwFqVksRv8awXzDNBgqfh20oHPsGishxIOt7eVbBcTH-eEHAqBQYfZZrtDC6zOuFyu-BO5l_pzVwwARhLcaWkPsy-gDBPjP6gWMfM3KZA0KHFU37uNIrheBCUZ6aAkirM_NNhsvsXCdZuDFpX1mW9Tl-6_q_8u9pIv8RSwbKWiWfesREeB8Wshhakd_7k95CzTB6jE1tuVUq_G6Dw32NZEUxENAa21nbMO7piFZt2IUnlUySWlxl8xGN7dkPx0ZnlsNO1aKQ_qMm9sIbLQVjx0ckJi&
Back to the top
 
Posted
Rating:
#108113
Avatar

Hot fix updated.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#108117
Avatar

Fan in action

Still error after clicking Admin Zone -> Setup -> Facebook Syndication / login


Code

An error has occurred

PHP ERROR [1] Call to a member function api() on a non-object in sources_custom/hooks/systems/syndication/facebook.php on line 110 (version: 9.0.19, PHP version: 5.4.40, URL: /adminzone/pg/facebook_oauth/index.php?oauth_in_progress=1&keep_refreshed_once=1&code=AQCRP9Xy1qu1et1YF9R7Hyw2dmkazjcmPpc-ji7OmSuSaTctGQ3k0OjKREQ2z1Ynp-ZhLggKcKFVuy__GKLW-OWC_jfEjROcZFtKbfb878dNXnAkhybD9RN0AE0pReTEl4pMsZjfDQMqn3eKDZdLmEgbJpsZky5ioUr970xLfaH4yXVjFFNPKz1L9BWtgyu6hfOw75YoWehcg_3uLcAt8gKGItPgf_QBU-cUitTrfMbkInAUuaSjR23rma6S5LGCn4NiMhkNcwCWgLflJkaeu4PH-01mozS6YySNEpca9GxYBrHbzX5iyqGHjjHogT4NVovr2cIisL8FI9FDZNNBpLf2&state=8174ed7b64dd13547620818ede0598da)

Error on facebook side about scopes is fixed, thanks :)
Back to the top
 
Posted
Rating:
#108131
Avatar

Hotfix edited again.

I haven't tested the change myself as I don't want to go through setting it all up (it's a pain to test), but I think I've fixed the issue. Facebook removed a feature called extended access tokens and I hadn't fully disabled that in my last change.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#108150
Avatar

Fan in action

Well, it still didn't work :/

Same error. Still investigating facebook addon and found another issue.

When I try to share something on Facebook, I click on like icon, +1 like is added but share window is almost not visible (only a small line appears).
Back to the top
 
Posted
Rating:
#108152
Avatar

Well, it still didn't work :/

Same error.

That can't be right, as that bit of code was commented out. I just double checked.

This suggests either the hotfix files weren't redeployed as expected (maybe got mixed up with different versions of the tar file), or the error is happening on a different line / different file.

I have, however, updated the hotfix with something that should fix the Facebook like button layout bug.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#108153
Avatar

Fan in action

Facebook authorisation

Successfully authorised Facebook posting. Applicable posts now show up on your Facebook page.

Yay! Thanks Chris, working great :)
Back to the top
 
Posted
Rating:
#108154
Avatar

Fan in action

About the problem with sharing button. When content is larger then sharing window goes below footer.

When I sharing catalogue entry to facebook there is no image. Is possible to share it with image from that entry? (position 2 in catalogue entry because of GRID display)
Back to the top
 
Posted
Rating:
#108155
Avatar

Can you provide links so I can see both issues live?


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#108156
Avatar

Btw, here's our v10 Facebook tutorial which is largely accurate for v9 also:
https://raw.githubusercontent.com/ocproducts/composr/master/docs/pages/comcode_custom/EN/tut_facebook.txt


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#108157
Avatar

Fan in action

Chris Graham said

Can you provide links so I can see both issues live?

http://ag-corner.com/s…-games/action/crossy-road



Chris Graham said

Btw, here's our v10 Facebook tutorial which is largely accurate for v9 also:
https://raw.githubusercontent.com/ocproducts/composr/master/docs/pages/comcode_custom/EN/tut_facebook.txt


Thanks, I will study it :)
Back to the top
 
Posted
Rating:
#108158
Avatar

This change in your theme's global.css should solve it:

Code (diff)

diff --git a/themes/default/css/global.css b/themes/default/css/global.css
index 884f16d..3c0e7aa 100644
--- a/themes/default/css/global.css
+++ b/themes/default/css/global.css
@@ -647,6 +647,13 @@ body#main_website #main_website_inner, html>body div.global_middle_faux {
 
 .global_middle_outer {
        margin-top: 0.8em;
+       overflow: visible !important;
+}
+/* We normally hide stuff with overflow:hidden, but some share buttons use absolute positioned layers that need to escape our box */
+.global_middle_outer:after {
+       content: "";
+       display: table;
+       clear: both;
 }
 {+START,IF,{$NOT,{$CONFIG_OPTION,collapse_user_zones}}}
        .zone_running_ .global_middle_outer {
 


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#108159
Avatar

"+" lines are the lines to add. So we're just adding a few lines here.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#108160
Avatar

For OpenGraph image sharing to work you'll need to delete uploads/catalogues/.htaccess. That is safe so long as you don't have any files in there protected by catalogue permissions and want to not be directly accessible.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: