Jump to content

Recommended Posts

OK, after a long struggle I manage to find the solution.

First, I had problems to add the domain in the App settings. Solved thanks to this post https://stackoverflow.com/questions/8769238/app-domain-is-not-a-valid-domain

Then I changed these settings as described here and finally it worked! ZeBzF.jpg

full post here https://stackoverflow.com/questions/37063685/facebook-oauth-the-domain-of-this-url-isnt-included-in-the-apps-domain

 

  • Like 1

Share this post


Link to post
Share on other sites

Hi,

I'm running into this error:

AutoFbPost: post failed; click here to log in with Facebook.

I'm already logged in with facebook, and if I click the provided link I get:

Can't load URL: The domain of this URL isn't included in the app's domains. To be able to load this URL, add all domains and sub-domains of your app to the App Domains field in your app settings.

How ever we're using the login-facebook module with same settings, which is working just fine.

Are we supposed to manually add the Open Graph meta information for this module to work? Anything else that could be wrong?

Share this post


Link to post
Share on other sites

Hello @Hurme,

on the Facebook for developers page, in your app's settings, provide the App domains field with your domain. I believe this is the only problem.

Share this post


Link to post
Share on other sites

Hi,

All these settings are already correct. Another module (login-facebook) is working just fine.

-Hurme

Share this post


Link to post
Share on other sites

 

image.png.2b0d7dbf443b55caa801fb2c9af22c60.png

image.png.c9a9f68f08dd81918f9a5b9ed9002947.png

 

Hello I have a problem with the module, a few months ago it worked perfectly but since FB implemented the strict URI mode it does not work for me.

 

I added all the urls that I think should go in the box and even then I always get error when trying to post a page from the processwire, if you can help me and I do not know what to modify for the module to work, thank you.

Share this post


Link to post
Share on other sites

The problem is probably "Valid OAuth Redirect URIs" field in which you can find under Facebook Login in the app menu.

Problem is, the URL for each page is different. How does one use dynamic URL for something like this? Perhaps the maker of the module can enlighten us.

Share this post


Link to post
Share on other sites

Hello,

you can update this module, because the issue has been resolved with the next version of php-graph-sdk.

Then, remember to go to your app in Facebook for developers -> Facebook Login -> Settings and add "http://www.example.com/processwire/page/" to the list of Valid OAuth Redirect URIs.

On 4/13/2018 at 11:06 AM, MSP01 said:

How does one use dynamic URL for something like this? Perhaps the maker of the module can enlighten us.

I only used it because I was allowed to, until recently; it was convenient to go back to the exact page we were editing.

Share this post


Link to post
Share on other sites

Hi,

the module stopped working for me. I was getting this error message from Facebook:

Quote

Invalid Scopes: publish_actions. 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

I removed "publish_actions" from the `$permissons`-array and it seems to work now. Maybe the module needs an update for this?

Share this post


Link to post
Share on other sites

Everything seems to be working fine with posting to facebook but if I view the page as a guest/user I can't see the posts, I can only see them as admin.

Could anyone advise please?

And Merry Christmas to all!! 🙂 

Share this post


Link to post
Share on other sites
On 12/26/2018 at 5:29 PM, alexmercenary said:

Everything seems to be working fine with posting to facebook but if I view the page as a guest/user I can't see the posts, I can only see them as admin.

Could anyone advise please?

And Merry Christmas to all!! 🙂 

I have same problem 😓

Share this post


Link to post
Share on other sites
On 1/10/2019 at 3:55 PM, abmcr said:

I have same problem 😓

Ah no! You're not alone. I still haven't figured this out. If I do, I'll be sure to let you know!

Share this post


Link to post
Share on other sites

Hello,

this module has been updated to conform to recent Facebook regulations that won't allow publishing content on a user profile. Instead, a post may be published on a Facebook page by the Facebook page only.

To set it up, configure the module with a Facebook app ID, secret and a Page ID. Following is additional configuration on Facebook for developers:

Minimum Required Facebook App configuration:

  • on Settings -> Basics,
    • provide the App Domains,
    • provide the Site URL,
  • on Settings -> Advanced, set the API version (has been tested up to v3.3),
  • add Product: Facebook Login,
  • on Facebook Login -> Settings,
    • set Client OAuth Login: Yes,
    • set Web OAuth Login: Yes,
    • set Enforce HTTPS: Yes,
    • add "https://www.example.com/processwire/page/" to field Valid OAuth Redirect URIs. 

You may also view the revised first post of this topic.

Thank you for your valuable input and I hope this update helps!

Kind regards,
Dimitrios

  • Like 6

Share this post


Link to post
Share on other sites

where do you find this ? thanks

  • on Settings -> Advanced, set the API version to 2.10,
  • add Product: Facebook Login,
  • on Facebook Login -> Settings,
    • set Client OAuth Login: Yes,
    • set Web OAuth Login: Yes,
    • set Enforce HTTPS: Yes,
    • add "http://www.example.com/processwire/page/" to field Valid OAuth Redirect URIs. 

 

 

Screenshot 2019-04-27 at 07.39.16.jpg

Share this post


Link to post
Share on other sites

You are free to test it with the latest API version before changing it. As for the login settings, you will first have to add product "Facebook Login".

  • Like 1

Share this post


Link to post
Share on other sites

thank you dimitrios.

Sorry but I followed all the steps, yet nothing happens when I save the page in PW.

 

Did not see where you change this 

  • on Settings -> Advanced, set the API version to 2.10,

XWYo28f.jpg

 

Share this post


Link to post
Share on other sites

No problem nfil. On settings -> advanced, it is the drop-down by the name Upgrade All Calls.

Share this post


Link to post
Share on other sites

I don't think that is possible because the FB app was created this week.

pLqIAzH.jpg

Share this post


Link to post
Share on other sites

Hi @nfil I just tested up to API version v3.3, so I don't believe this is the problem. Is the site SSL enabled?

  • Like 1

Share this post


Link to post
Share on other sites

yes it is enabled! Thank you dimitrios I will try again later.

Share this post


Link to post
Share on other sites

Hello,  i get the error from FB 

Quote

Invalid Scopes: publish_to_groups, manage_pages, publish_pages. 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

Where to change the Scope ? Or is something wrong on My PW Page ? 

Screenshot_4.jpg

Share this post


Link to post
Share on other sites
2 hours ago, Gideon So said:

Hi @iNoize,

Go check your FB app settings and remove all unnecssary permission.

Gideon

Which do you mean? On the global settings or the login product settings? 

Screenshot_11.jpg

Screenshot_10.jpg

Screenshot_8.jpg

Screenshot_7.jpg

Screenshot_5.jpg

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By Gadgetto
      SnipWire - Snipcart integration for ProcessWire
      Snipcart is a powerful 3rd party, developer-first HTML/JavaScript shopping cart platform. SnipWire is the missing link between Snipcart and the content management framework ProcessWire.
      With SnipWire, you can quickly turn any ProcessWire site into a Snipcart online shop. The SnipWire plugin helps you to get your store up and running in no time. Detailed knowledge of the Snipcart system is not required.
      SnipWire is free and open source licensed under Mozilla Public License 2.0! A lot of work and effort has gone into development. It would be nice if you could donate an amount to support further development:

      Status update links (inside this thread) for SnipWire development
      2020-07-03 -- SnipWire 0.8.7 (beta) released! Fixes some small bugs and adds an indicator for TEST mode 2020-04-06 -- SnipWire 0.8.6 (beta) released! Adds support for Snipcart subscriptions and also fixes some problems 2020-03-21 -- SnipWire 0.8.5 (beta) released! Improves SnipWires webhooks interface and provides some other fixes and additions 2020-03-03 -- SnipWire 0.8.4 (beta) released! Improves compatibility for Windows based Systems. 2020-03-01 -- SnipWire 0.8.3 (beta) released! The installation and uninstallation process has been heavily revised. 2020-02-08 -- SnipWire 0.8.2 (beta) released! Added a feature to change the cart and catalogue currency by GET, POST or SESSION param 2020-02-03 -- SnipWire 0.8.1 (beta) released! All custom classes moved into their own namespaces. 2020-02-01 -- SnipWire is now available via ProcessWire's module directory! 2020-01-30 -- SnipWire 0.8.0 (beta) first public release! (module just submitted to the PW modules directory) 2020-01-28 -- added Custom Order Fields feature (first SnipWire release version is near!) 2020-01-21 -- Snipcart v3 - when will the new cart system be implemented? 2020-01-19 -- integrated taxes provider finished (+ very flexible shipping taxes handling) 2020-01-14 -- new date range picker, discount editor, order notifiactions, order statuses, and more ... 2019-11-15 -- orders filter, order details, download + resend invoices, refunds 2019-10-18 -- list filters, REST API improvements, new docs platform, and more ... 2019-08-08 -- dashboard interface, currency selector, managing Orders, Customers and Products, Added a WireTabs, refinded caching behavior 2019-06-15 -- taxes provider, shop templates update, multiCURL implementation, and more ... 2019-06-02 -- FieldtypeSnipWireTaxSelector 2019-05-25 -- SnipWire will be free and open source Plugin Key Features
      Fast and simple store setup Full integration of the Snipcart dashboard into the ProcessWire backend (no need to leave the ProcessWire admin area) Browse and manage orders, customers, discounts, abandoned carts, and more Multi currency support Custom order and cart fields Process refunds and send customer notifications from within the ProcessWire backend Process Abandoned Carts + sending messages to customers from within the ProcessWire backend Complete Snipcart webhooks integration (all events are hookable via ProcessWire hooks) Integrated taxes provider (which is more flexible then Snipcart own provider) Useful Links
      SnipWire in PW modules directory SnipWire Docs (please note that the documentation is a work in progress) SnipWire @GitHub (feature requests and suggestions for improvement are welcome - I also accept pull requests) Snipcart Website  

       
      ---- INITIAL POST FROM 2019-05-25 ----
       
    • By flydev 👊🏻
      Hello,
      I would like to present you a new module which aim to facilitate the productivity of your editors/publishers when working on ProcessWire.
      The idea begun when my co-worker told me that when typing in ProcessWire CkEditor field he was feeling "loosing motivation" when writing big wall of text and/or inspiration. So he opened his web-browser and show me a site looking to Wordpress - feel free to put your preferred emoji here - then he opened Gutenberg... typed some text and moving some "blocks".
      I understood immediately why he got this feeling with CkEditor. If you or your client feel like this guy, then you will love this module !
       
      What is currently supported ?
      Features
      Auto-save Medias upload support HannaCode support Blocks Implemented
      Heading Image Paragraph Embed Quote Code Link Table (beta) Block Delimiter Raw HTML Note (custom block markup) Feature Request
      Frontend Edition   
      And there you go for the preview - sorry I am to lazy and bad at typing text so I had a copy/pasta moment :
       

       
      Module featured in the ProcessWire Weekly #317 - Thanks @teppo
    • By Sten
      Hello
      Till now I hacked something with the twig template but it works no more with new PW versions so I look forward to create a module. I am working on a site in multiple languages : French, English, Italian, German, Spanish, Portuguese, Hebrew, Russian. The new posts are entered in any language with a field for language. Till now, I got twig files to get the translations with constants defined for each part of the pages.
      So I'd like to create a module to include theses files added according to the url /fr/en/...
      Have you some observations to do before I begin about the direction to take ?
      Thank you
    • By ukyo
      Mystique Module for ProcessWire CMS/CMF
      Github repo : https://github.com/trk/Mystique
      Mystique module allow you to create dynamic fields and store dynamic fields data on database by using a config file.
      Requirements
      ProcessWire 3.0 or newer PHP 7.0 or newer FieldtypeMystique InputfieldMystique Installation
      Install the module from the modules directory:
      Via Composer:
      composer require trk/mystique Via git clone:
      cd your-processwire-project-folder/ cd site/modules/ git clone https://github.com/trk/Mystique.git Module in live reaction with your Mystique config file
      This mean if you remove a field from your config file, field will be removed from edit screen. As you see on youtube video.
      Using Mystique with your module or use different configs path, autoload need to be true for modules
      Default configs path is site/templates/configs/, and your config file name need to start with Mystique. and need to end with .php extension.
      Adding custom path not supporting anymore !
      // Add your custom path inside your module class`init` function, didn't tested outside public function init() { $path = __DIR__ . DIRECTORY_SEPARATOR . 'configs' . DIRECTORY_SEPARATOR; Mystique::add($path); } Mystique module will search site/modules/**/configs/Mystique.*.php and site/templates/Mystique.*.php paths for Mystique config files.
      All config files need to return a PHP ARRAY like examples.
      Usage almost same with ProcessWire Inputfield Api, only difference is set and showIf usage like on example.
      <?php namespace ProcessWire; /** * Resource : testing-mystique */ return [ 'title' => __('Testing Mystique'), 'fields' => [ 'text_field' => [ 'label' => __('You can use short named types'), 'description' => __('In file showIf working like example'), 'notes' => __('Also you can use $input->set() method'), 'type' => 'text', 'showIf' => [ 'another_text' => "=''" ], 'set' => [ 'showCount' => InputfieldText::showCountChars, 'maxlength' => 255 ], 'attr' => [ 'attr-foo' => 'bar', 'attr-bar' => 'foo' ] ], 'another_text' => [ 'label' => __('Another text field (default type is text)') ] ] ]; Example:
      site/templates/configs/Mystique.seo-fields.php <?php namespace ProcessWire; /** * Resource : seo-fields */ return [ 'title' => __('Seo fields'), 'fields' => [ 'window_title' => [ 'label' => __('Window title'), 'type' => Mystique::TEXT, // or InputfieldText 'useLanguages' => true, 'attr' => [ 'placeholder' => __('Enter a window title') ] ], 'navigation_title' => [ 'label' => __('Navigation title'), 'type' => Mystique::TEXT, // or InputfieldText 'useLanguages' => true, 'showIf' => [ 'window_title' => "!=''" ], 'attr' => [ 'placeholder' => __('Enter a navigation title') ] ], 'description' => [ 'label' => __('Description for search engines'), 'type' => Mystique::TEXTAREA, 'useLanguages' => true ], 'page_tpye' => [ 'label' => __('Type'), 'type' => Mystique::SELECT, 'options' => [ 'basic' => __('Basic page'), 'gallery' => __('Gallery'), 'blog' => __('Blog') ] ], 'show_on_nav' => [ 'label' => __('Display this page on navigation'), 'type' => Mystique::CHECKBOX ] ] ]; Searching data on Mystique field is limited. Because, Mystique saving data to database in json format. When you make search for Mystique field, operator not important. Operator will be changed with %= operator.
      Search example
      $navigationPages = pages()->find('my_mystique_field.show_on_nav=1'); $navigationPages = pages()->find('my_mystique_field.page_tpye=gallery');
    • By Robin S
      This is a module I made as an experiment a while ago and never got around to releasing publicly. At the time it was prompted by discussions around using Repeater fields for "page builder" purposes, where the depth feature could possibly be used for elements that would be nested inside other elements. I thought it would be useful to enforce some depth rules and translate the depth data into a multi-dimensional array structure.
      I'm not using this module anywhere myself but maybe it's useful to somebody.
      Repeater Depth Helper
      This module does two things relating to Repeater fields that have the "Item depth" option enabled:
      It enforces some depth rules for Repeater fields on save. Those rules are:
      The first item must have a depth of zero. Each item depth must not be more than one greater than previous item depth. It provides a RepeaterPageArray::getDepthStructure helper method that returns a nested depth structure for a Repeater field value.
      Helper method
      The module adds a RepeaterPageArray::getDepthStructure method that returns a multi-dimensional array where the key is the page ID and the value is an array of nested "child" items, or null if there are no nested children.
      Example

      The module doesn't make any assumptions about how you might want to use the depth structure array, but here is a way you might use it to output a nested unordered list.
      // Output a nested unordered list from a depth structure array function outputNestedList($depth_structure, $repeater_items) { $out = "<ul>"; foreach($depth_structure as $page_id => $nested_children) { $out .= "<li>" . $repeater_items->get("id=$page_id")->title; // Go recursive if there are nested children if(is_array($nested_children)) $out .= outputNestedList($nested_children, $repeater_items); $out .= "</li>"; } $out .= "</ul>"; return $out; } $repeater_items = $page->my_repeater; $depth_structure = $repeater_items->getDepthStructure(); echo outputNestedList($depth_structure, $repeater_items);
       
      https://github.com/Toutouwai/RepeaterDepthHelper
      https://modules.processwire.com/modules/repeater-depth-helper/
×
×
  • Create New...