Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't add any social account except YouTube (Google) but cannot publish | (Willing to write guide when issues fixed) #388

Open
kenjibailly opened this issue Jul 25, 2022 · 8 comments

Comments

@kenjibailly
Copy link

kenjibailly commented Jul 25, 2022

Intro

I cannot seem to add any social accounts, they all have their individual problem. I will therefore create this issue with all the details listed. I will also add my workflow as I couldn't find any tutorials on how to add the API keys to socioboard so I tried to figure it out myself. However I could made some errors as it's not connecting.

I've used the redirect URIs that I found from here:
https://github.com/socioboard/Socioboard-5.0/blob/master/socioboard-api/User/config/development.json

As it seems that this is pretty complex to get it to work and I couldn't find any guides, I'm willing to write a guide once I get the problems fixed, so others don't have to go through the same issues.

Notes:

I will replace some codes with "XXXXXXXXX" for security reasons.
I'm replacing my domain with "socio.mydomain.com".


Facebook

Profile

Redirects me to a 404 being this url:

https://socio.mydomain.com/add-accounts/Facebook 

image

Workflow

Check FanPage workflow.

FanPage

Redirects me to the authorization page on Facebook, then redirects me back and gives me this error:
image

Meanwhile, nothing has been added:
image

Workflow

I have these products on the Facebook Developer portal:
image

I then added to the Facebook Login Settings this "Valid OAuth Redirect URIs":

https://socio.mydomain.com/facebook-page/callback

I then added the "App ID" and "App secret" under Settings > Basic to "FACEBOOK_API_APP_ID" and "FACEBOOK_API_APP_SECRET" respectively.


Twitter

Redirects me to Twitter, then shows me this:
image

It loads for a while, then redirects me back to socioboard with this kind of url:

https://socio.mindglowing.art/twitter/callback?oauth_token=XXXXXXXXXXXXXXXXXXXXXX&oauth_verifier=XXXXXXXXXXXXXXXXXXXXXXXX

Unfortunately that doesn't seem to work as I get this:
image

Workflow

I created a project on the developer portal of Twitter and turned on "OAuth 1.0a" with read and write permissions.
I added "https://socio.mydomain.com/twitter/callback" to "Callback URI / Redirect URL"

Then added the API key and secret to "TWITTER_API_KEY" and "TWITTER_API_SECRET" respectively. I also added the name of my project to "TWITTER_API_APP_NAME". I named it "Socioboard Mind Glowing".
image


Instagram

Profile

Redirects me to Instagram authorization page

image

But when I click allow, it brings me to a 404 url:
image

https://socio.mydomain.com/insta-callback?code=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX#_

Workflow

I have this product on the Facebook Developer portal:
image

And I added myself as a test user:
image

I added the "Instagram App ID" and "Instagram App Secret" that can be find under "Basic Display" to "IG_API_ID" and "IG_API_SECRET" respectively.


Business Account

Logs into Instagram, but then redirects back to /dashboard with an error:
https://discord.com/channels/698577665128661012/993789550549807114/1000860816842702908

Translated:

400 - "{"error":{"message":"URL could not be loaded: The domain of this URL has not been added to the domains of this app. Add all of your app's domains and subdomains to the App Domains field in your app's settings in order to load this URL.","type":"OAuthException","code":191,"fbtrace_id" :"ADqbucwm2oQXEk9_38FBHsH"}}"

I do understand this error, however I tried to add all the urls I could possibly find to add it to the application here:
image
This didn't work. So any insights into which callback URI should be added to above would be very helpful.

Workflow

I'm using these 2 products on the developer portal from Facebook:
image

I added the "App ID" and the "App secret" that can be found under settings > basic to "IG_BUSINESS_API_ID" and "IG_BUSINESS_API_SECRET" respectively.


YouTube

Added successfully, but cannot publish as the upload of the video never finishes. I tried with different files of less than 10MB, but nothing seems to get through.
Without adding a video, one cannot publish to YouTube, so therefore don't know if this is working.
Not sure why it never finishes:
image


Pinterest

I'm getting this error:
image

Workflow

I added "App id" and "App secret key" to "PINTEREST_API_ID" and "PINTEREST_API_SECRET" respectively.
I then added this to "Redirect URIs":

https://socio-api.mydomain.com/v1/team/addSocialProfile

(which is container port 3000 api)


Conclusion

I've pretty much tried everything that I have in my arsenal, so I'm hoping for some guidance from you so I can resolve these issues.

Thank you in advance!

@kenjibailly kenjibailly changed the title Can't add any social account except YouTube (Google) but cannot publish Can't add any social account except YouTube (Google) but cannot publish | (Willing to write guide when issues fixed) Jul 25, 2022
@vaughngx4
Copy link
Contributor

@kenjibailly I too have run into some of these issues xD I'll meet you on Discord one of the days and we can try figure it out.

@kenjibailly
Copy link
Author

@kenjibailly I too have run into some of these issues xD I'll meet you on Discord one of the days and we can try figure it out.

Alright epic, can't wait to get started!

@net-studio
Copy link

Encounting the same issues. Then i'm stuck...
If someone has a clue, i'll take it.
Regards

@timoklein79
Copy link

Dear Community,

did anyone figure out what are reasons for these issues with the social accounts ?
Thanks in advance.

Timo

@vaughngx4
Copy link
Contributor

I've been working on it in my spare time. Still no progress on the socials because I still need to read up on the various APIs first. If you'd like updates on development you can join my discord(in my profile) or keep an eye on my fork. There is also a development branch on my fork with unconfirmed changes for testing.

@timoklein79
Copy link

Dear @vaughngx4 , thanks man. I really appreciate what your doing. If I would be a better programmer, than a salesman, I would love to help much more. At least I will share any findings (if there are any) in order to help to solve these issues. And, for sure, I am already using your fork :-D

What I am wondering, if you could kindly enlighten me - I even don't know where to check for logs in the docker version (apart from that , I really like the docker setup you created).

So only thing I saw, not sure if this is the key, at least for twitter there were too many redirects in the callback

@vaughngx4
Copy link
Contributor

vaughngx4 commented Aug 23, 2022

@timoklein79 No problem :) So for checking logs there are a few different logs you can look at, most of them are documented in Docker.README.md. To see startup logs for the API you can use docker logs socioboard. To see the last 15 lines of logs for each API service use docker exec -it socioboard su-exec node pm2 logs. To view access logs for the frontend use docker logs socioboard-web or to see it from the reverse proxy use docker logs socioboard-nginx. To view LARAVEL(frontend process) logs use docker exec -it socioboard-web cat socioboard-web-php/storage/logs/laravel.log.

@timoklein79
Copy link

Great, thanks!!! At least I can dig a little deeper .... but laravel.log is not existing (at least it doesn't show anything). But with regards, to twitter problem, on my installation I can ony see kind of "error outside [object Object]" - but this could also refer to the sendgrid stuff / I recently also joined the discord server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants