Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

fbad_init issue #123

Closed
danielad-k opened this issue May 28, 2020 · 9 comments
Closed

fbad_init issue #123

danielad-k opened this issue May 28, 2020 · 9 comments
Labels

Comments

@danielad-k
Copy link

Hello,
I get the following error when i try to connect to fbad_init
image

When I ran,
debugonce(fbRads:::fbad_request)
fbad_init(accountid=accountid, token=token3, version = "7.0")

I got the following message for curlres$message:
image
Thank you!

@daroczig
Copy link
Owner

Can you please share your sessionInfo() (or sessioninfo::session_info() would be even better) after loading fbRads?

@danielad-k
Copy link
Author

Hello,
Here you go:
image

@danielad-k
Copy link
Author

One more thing:
the code below actually works too:

library("RCurl")
library("jsonlite")

myURL=paste0("https://graph.facebook.com/v7.0/act_XXXXX/insights?fields&level=ad&",
"access_token=XXXXXX"
)
print(myURL)
print(getURL(fromJSON(myURL)))

@daroczig
Copy link
Owner

Can you please give a try to #125?

devtools::install_github('daroczig/fbRads@ssl_version_6')

@danielad-k
Copy link
Author

Now I get this error:
image

@daroczig
Copy link
Owner

Can you please post the results of RCurl::curlVersion()?

@danielad-k
Copy link
Author

Here you go:
image

@daroczig
Copy link
Owner

Oh my, that explains -- the OpenSSL version is really old. Probably that's a Windows issue due to the bundled lib in RCurl... I should at some point drop RCurl and switch to curl or httr anyway ... but it's a larger change that I won't do in the near future (and if I do, probably will go with reticulate and the Python FB Business SDK integration), so no quick fixes for this, sorry.

What you could try is building RCurl with a most recent version of OpenSSL or using the package from Linux meanwhile. I will think about a better solution for this, sorry that this is not that helpful.

@danielad-k
Copy link
Author

thank you. This gives me direction of what to fix.

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

No branches or pull requests

2 participants